3 !!DESCRIPTION!! Cast to char
11 static unsigned int failures = 0;
13 int f1(int i, int j) {
14 return (signed char) (i + 1) == j;
17 int f2(int i, int j) {
18 return (unsigned char) (i + 1) == j;
21 int f3(int i, int j) {
22 return (char) (i + 1) == j;
27 printf("f1: got :%04x ", f1(0x1234, 0x35));
28 if(f1(0x1234, 0x35) == 0) {
34 printf("f2: got :%04x ", f2(0x1234, 0x35));
35 if(f2(0x1234, 0x35) == 0) {
41 printf("f3: got :%04x ", f3(0x1234, 0x35));
42 if(f3(0x1234, 0x35) == 0) {