305RE: [TMS470_ARM] No assembly code generated
- Jan 31, 2014
Thanks everyone for your input - Mr. Leiphart was right, the condition
(fd->mode & O_RDONLY != O_RDONLY)
will always evaluate to false since the constan O_RDONLY ≡ 0 and anything ANDDED with it will yield zero. I've replaced this with
if(fd->mode != O_RDONLY) and all is fine.
- << Previous post in topic