This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compiler Crashed on Specific Macro

Hi all,
I defined a macro as

#define min(a,b)       (((a) < (b)) ? (a) : (b))
and used it as
xfr_cnt = min(to_xfer, secsize - boff);
but every time compiler crashed on this C file. It is ok after I expanded it as
xfr_cnt= ((to_xfer < (secsize - boff)) ? (to_xfer) : (secsize - boff));
Strange huh? Please help!

0