Permalink
Browse files

Fixed test failures with 64-bit support disabled.

git-svn-id: https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@220 1f120ed1-78a5-a849-adca-83f0a9e25bb6
  • Loading branch information...
1 parent cab900e commit a81bf899da605bdd6e48ab37f754924478b5ab4d aaronjacobs committed with rjeczalik May 25, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/test_lib_json/main.cpp
View
@@ -800,13 +800,19 @@ ValueTest::checkIs( const Json::Value &value, const IsCheck &check )
JSONTEST_ASSERT_EQUAL( check.isBool_, value.isBool() );
JSONTEST_ASSERT_EQUAL( check.isDouble_, value.isDouble() );
JSONTEST_ASSERT_EQUAL( check.isInt_, value.isInt() );
- JSONTEST_ASSERT_EQUAL( check.isInt64_, value.isInt64() );
JSONTEST_ASSERT_EQUAL( check.isUInt_, value.isUInt() );
- JSONTEST_ASSERT_EQUAL( check.isUInt64_, value.isUInt64() );
JSONTEST_ASSERT_EQUAL( check.isIntegral_, value.isIntegral() );
JSONTEST_ASSERT_EQUAL( check.isNumeric_, value.isNumeric() );
JSONTEST_ASSERT_EQUAL( check.isString_, value.isString() );
JSONTEST_ASSERT_EQUAL( check.isNull_, value.isNull() );
+
+#ifdef JSON_HAS_INT64
+ JSONTEST_ASSERT_EQUAL( check.isInt64_, value.isInt64() );
+ JSONTEST_ASSERT_EQUAL( check.isUInt64_, value.isUInt64() );
+#else
+ JSONTEST_ASSERT_EQUAL( false, value.isInt64() );
+ JSONTEST_ASSERT_EQUAL( false, value.isUInt64() );
+#endif
}

0 comments on commit a81bf89

Please sign in to comment.