You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/09/11 19:49:47 UTC
[2/2] incubator-mynewt-core git commit: Fix warning in json unit test.
Fix warning in json unit test.
test_json_simple.c: In function \u2018TEST_CASE_test_json_simple_decode\u2019:
test_json_simple.c:309:4: error: this decimal constant is unsigned only
in ISO C90 [-Werror]
TEST_ASSERT(uintarr[2] == 4294967295);
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/61a21087
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/61a21087
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/61a21087
Branch: refs/heads/develop
Commit: 61a210874945fc8eef2703cd878d7a2d6a2b2ef8
Parents: df50b66
Author: Christopher Collins <cc...@apache.org>
Authored: Sun Sep 11 12:49:24 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Sun Sep 11 12:49:24 2016 -0700
----------------------------------------------------------------------
libs/json/src/test/test_json_simple.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/61a21087/libs/json/src/test/test_json_simple.c
----------------------------------------------------------------------
diff --git a/libs/json/src/test/test_json_simple.c b/libs/json/src/test/test_json_simple.c
index 55d50f4..0f9e10e 100644
--- a/libs/json/src/test/test_json_simple.c
+++ b/libs/json/src/test/test_json_simple.c
@@ -306,9 +306,9 @@ TEST_CASE(test_json_simple_decode){
TEST_ASSERT(uintarr[0] == 0);
TEST_ASSERT(uintarr[1] == 65535);
- TEST_ASSERT(uintarr[2] == 4294967295);
- TEST_ASSERT(uintarr[3] == 8589934590);
- TEST_ASSERT(uintarr[4] == 3451257);
+ TEST_ASSERT(uintarr[2] == 4294967295ULL);
+ TEST_ASSERT(uintarr[3] == 8589934590ULL);
+ TEST_ASSERT(uintarr[4] == 3451257ULL);
/*testing arrays with empty spaces within the elements*/
struct json_attr_t test_boolspacearr[2] = {