From: Ulya Trofimovich Date: Sun, 16 Aug 2015 14:21:23 +0000 (+0100) Subject: Fixed [-Wsign-conversion] warnings in 'testrange' sources. X-Git-Tag: 0.15~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a2fe5070e642813a3a8ba1bd3f9cd12ba72c99;p=re2c Fixed [-Wsign-conversion] warnings in 'testrange' sources. --- diff --git a/re2c/src/test/range/test-impl.h b/re2c/src/test/range/test-impl.h index 61478f9f..3f1d7840 100644 --- a/re2c/src/test/range/test-impl.h +++ b/re2c/src/test/range/test-impl.h @@ -7,9 +7,9 @@ namespace re2c_test { -static inline bool bit_set (uint32_t n, uint8_t bit) +static inline bool bit_set (uint32_t n, uint32_t bit) { - return n & (1 << bit); + return n & (1u << bit); } template