Re:The Problem with Friendly C
by nly on Wednesday December 23, 2015 @11:58PM
(#10787177)
For anyone wondering: double -> uintx_t is indeed undefined in C and C++ for values outside of (0, UINTx_MAX), which is kind of a gotcha since, double -> long -> uint8_t is fine (assuming all integer parts of double fit in a long).
[ Parent
| on HN ]
Re:The Problem with Friendly C
by tarpherder on Thursday December 24, 2015 @10:16AM
(#10788401)
Which they don't? Right?