Fixed char.c msvc compiler warnings

Thanks to LuLu for bringing it up.

Signed-off-by: shennetsind <ind@henn.et>