Re:“It is never a compiler error”
by cperciva on Wednesday November 15, 2017 @02:14AM
(#15702011)
Not necessarily. Could be a problem with passing 64-bit values to varadic functions generally. I could definitely imagine this happening on a 32-bit platform.
[ Parent
| on HN ]
This has bitten me on QNX. I was porting UQM for fun, and it was failing when entering a dialogue,
Turns out, on QNX you can't pass short int into variadic function, which is expected behavior as far as C is concerned (you should only pass int or full size types), but it worked on every other arch so it took me a while.