--- - branch: MAIN date: Tue Mar 18 14:28:37 UTC 2014 files: - new: '1.29' old: '1.28' path: src/sys/sys/endian.h pathrev: src/sys/sys/endian.h@1.29 type: modified id: 20140318T142837Z.bf78f9589b7af1697faf3666a5e9fed03e8d3871 log: | Avoid undefined behaviour in shifts in endian decoding routines. If int is 32-bit and p is a uint8_t *, then p[0] is promoted to int and p[0] << 24 can shift a one into the sign bit of an int, which is nasal demon territory. module: src subject: 'CVS commit: src/sys/sys' unixtime: '1395152917' user: riastradh