Probably the safest thing to do is to make "hash" unsigned long and replace "if (hash < 0)" with "if (hash > (unsigned long)INFINITY)". That way you have the same hash function as before, but with valid C.
In addition to that you could also make "ch" an unsigned char if you think it might be helpful to have the same hash values on different architectures. (Don't use "volatile", of course.) -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

