From: Ian Jackson Date: Sun, 12 Jun 2011 21:37:24 +0000 (+0100) Subject: integer arithmetic types: make get_uint32, get_uint16 return the correct type X-Git-Tag: v0.2.0~77 X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/commitdiff_plain/6fbd4b99bc50cf9cd54a1b6e2b2c96c4ba4a9b19?hp=6fbd4b99bc50cf9cd54a1b6e2b2c96c4ba4a9b19 integer arithmetic types: make get_uint32, get_uint16 return the correct type Previously get_uint32 and get_uint16 would return whatever the usual arithmetic conversions produced. (The previous code was not in fact even guaranteed to work properly on a machine with 16-bit ints.) Now we cast the individual bytes before shifting. Signed-off-by: Ian Jackson ---