提交 bfbd8fe0 编写于 作者: M Max Bruckner

tests/parse_hex4: Fix GCC 7 compiler warning (fixes #179)

上级 82295f9e
......@@ -41,6 +41,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
-Wcomma
-Wdouble-promotion
-Wparentheses
-Wformat-overflow
)
endif()
......
......@@ -31,8 +31,8 @@
static void parse_hex4_should_parse_all_combinations(void)
{
unsigned int number = 0;
unsigned char digits_lower[5];
unsigned char digits_upper[5];
unsigned char digits_lower[6];
unsigned char digits_upper[6];
/* test all combinations */
for (number = 0; number <= 0xFFFF; number++)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册