fix c unsigned char warning