fixed compiling with old Apple GCC (hs and hl are unsigned int, and therefore cannot be < 0). nw.