Re:How to C in 2016
by aidenn0 on Friday January 08, 2016 @12:25PM
(#10866521)
The only issue I can think of is that arithmetic on an uint16_t will be signed on a 32-bit target and unsigned on a 16 bit target. I think the only possible way to get undefined behavior would be to left shift by enough to overflow the signed integer on the 32-bit target, which should be rare (and might not be well defined on the 16 bit target; I don't have the spec in front of me right now).
[ Parent
| on HN ]
There are no comments on this comment yet.