Fixing compiler errors in hashtable