Fixed hash so compiles in a C++ compiler. Not sure what compiler Tim was
using.