I have the following code
//Point.h #define WIDTH 8 #define HEIGHT 8 typedef struct Point { char x; char y; } Point; //Board.c #include
Are you sure that char is signed? Try declaring the fields explictly as signed char and see what you get.
char
signed char