Fix incorrect type-casting of signed to unsigned.

These incorrect type-casts were introduced by 3cb817b8.
Blindly type-casting to please the compiler is bad!

This should fix this issue: https://sourceforge.net/p/fontforgebuilds/tickets/8/

~~I need to test whether that is so though.~~ Yep!