From e3a20642397542018ab3cb7df803c49c3cd93077 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 9 Jun 2016 21:33:59 +0100 Subject: [PATCH] Fixed warnings on some compilers. --- src/binary.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/binary.h b/src/binary.h index a1aebdc7..3a1be615 100644 --- a/src/binary.h +++ b/src/binary.h @@ -353,7 +353,7 @@ namespace etl { uint32_t count; static const int S[] = { 1, 2, 4 }; - static const int B[] = { 0x55, 0x33, 0x0F }; + static const uint8_t B[] = { 0x55, 0x33, 0x0F }; count = value - ((value >> 1) & B[0]); count = ((count >> S[1]) & B[1]) + (count & B[1]); @@ -371,7 +371,7 @@ namespace etl { uint32_t count; static const int S[] = { 1, 2, 4, 8 }; - static const int B[] = { 0x5555, 0x3333, 0x0F0F, 0x00FF }; + static const uint16_t B[] = { 0x5555, 0x3333, 0x0F0F, 0x00FF }; count = value - ((value >> 1) & B[0]); count = ((count >> S[1]) & B[1]) + (count & B[1]); @@ -390,7 +390,7 @@ namespace etl { uint32_t count; static const int S[] = { 1, 2, 4, 8, 16 }; - static const int B[] = { 0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0x0000FFFF }; + static const uint32_t B[] = { 0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0x0000FFFF }; count = value - ((value >> 1) & B[0]); count = ((count >> S[1]) & B[1]) + (count & B[1]); @@ -815,7 +815,7 @@ namespace etl b11111100 = 252, b11111101 = 253, b11111110 = 254, - b11111111 = 255, + b11111111 = 255 }; }