From 7f1d5473842361f97fef886bc4e98949ecf853b6 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Tue, 7 Jan 2014 00:07:11 -0500 Subject: Enable warnings when compiling and fix a few. --- src/bitfield/8byte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bitfield/8byte.c b/src/bitfield/8byte.c index 0ae6894b..9325ed1b 100644 --- a/src/bitfield/8byte.c +++ b/src/bitfield/8byte.c @@ -8,8 +8,8 @@ uint8_t eightbyte_get_nibble(const uint64_t source, const uint8_t nibble_index, const bool data_is_big_endian) { - return eightbyte_get_bitfield(source, NIBBLE_SIZE * nibble_index, NIBBLE_SIZE, - data_is_big_endian); + return (uint8_t) eightbyte_get_bitfield(source, NIBBLE_SIZE * nibble_index, + NIBBLE_SIZE, data_is_big_endian); } uint8_t eightbyte_get_byte(uint64_t source, const uint8_t byte_index, -- cgit 1.2.3-korg