Fixed char.c compilation error in MSVC <= 2012

Signed-off-by: TungSinpei <TungSinpei@hotmail.com>