|
From: Dan K. <da...@ke...> - 2009-11-27 05:08:26
|
On Thu, Nov 26, 2009 at 8:24 PM, Stewart Smith <st...@fl...> wrote: > I have the following code snippet > > char nf= *null_flags; > char r1nf= *(null_flags + s->rec_buff_length); > int eq= nf==r1nf; > fprintf(stderr, "man compare: %x\n", eq); > > fprintf(stderr, "byte compare: %d\n", > (char)((char)*(char*)(null_flags)) == (char)(*(char*)(null_flags + > s->rec_buff_length))); ... Please post a compilable minimal test case, it's hard to guess without seeing that. - Dan |