Byte order reversal shouldn't assume size_t is 64 bit.
commitc3cf81324744737e9a9e8d8d7435d39bf95034f3
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 16 Jun 2015 23:01:10 +0000 (17 11:01 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jun 2015 04:04:10 +0000 (24 06:04 +0200)
treecd1b5ddcd97a00a1b4fb9879144afee28e73d9bc
parentfa4f4fed2ea20166f48fc40b895ef57aa608ace9
Byte order reversal shouldn't assume size_t is 64 bit.

This fixes compilation on 32 bit i386 with -WError.

 ../lib/crypto/aes_gcm_128.c:213:2: error: right shift count >= width of type [-Werror]
 ../lib/crypto/aes_gcm_128.c:213:2: error: left shift count >= width of type [-Werror]

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/byteorder.h