change long to int as return value in hash_string(). Remember the wraparound