fixed some warnings on platform with char default as unsigned char (ARM)