From 5f6fa3a6961ac8366ac3aa9ec36ce5eb0ad33a05 Mon Sep 17 00:00:00 2001 From: Andre Haupt <andre.haupt@omicron.at> Date: 周三, 11 11月 2015 22:45:25 +0800 Subject: [PATCH] Fix uninitialised variable in RESULT_ARRAY macro. --- libscpi/test/test_parser.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libscpi/test/test_parser.c b/libscpi/test/test_parser.c index 8114266..990ea62 100644 --- a/libscpi/test/test_parser.c +++ b/libscpi/test/test_parser.c @@ -392,8 +392,8 @@ TEST_ParamUInt32("10V", TRUE, 0, FALSE, -138); // test range - TEST_ParamUInt32("2147483647", TRUE, 2147483647, TRUE, 0); - TEST_ParamUInt32("4294967295", TRUE, 4294967295, TRUE, 0); + TEST_ParamUInt32("2147483647", TRUE, 2147483647ULL, TRUE, 0); + TEST_ParamUInt32("4294967295", TRUE, 4294967295ULL, TRUE, 0); } #define TEST_ParamInt64(data, mandatory, expected_value, expected_result, expected_error_code) \ @@ -472,8 +472,8 @@ TEST_ParamUInt64("10V", TRUE, 0, FALSE, -138); // test range - TEST_ParamUInt64("2147483647", TRUE, 2147483647, TRUE, 0); - TEST_ParamUInt64("4294967295", TRUE, 4294967295, TRUE, 0); + TEST_ParamUInt64("2147483647", TRUE, 2147483647ULL, TRUE, 0); + TEST_ParamUInt64("4294967295", TRUE, 4294967295ULL, TRUE, 0); TEST_ParamUInt64("9223372036854775807", TRUE, 9223372036854775807ULL, TRUE, 0); TEST_ParamUInt64("18446744073709551615", TRUE, 18446744073709551615ULL, TRUE, 0); } -- Gitblit v1.9.1