Fixed assign/compare problem with signed/unsigned char