[ofw] error when compiling ofed ulp\libibnetdisc
Hefty, Sean
sean.hefty at intel.com
Mon Jul 26 15:57:51 PDT 2010
> OK - curious how newer 'mo-better' compilers did not catch this....
My guess is that because we have something like this:
uint8_t blah;
uint16_t foo;
foo = (uint64_t) blah;
Casting from uint8 to uint64 to uint16 (the last being implicit from the assignment) cannot result in actual data loss. A 'mo-better' compiler could have figured this out.
More information about the ofw
mailing list