From af6d8360c9688e1a0cd9cf70db1b8cbf0d1fa49f Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 4 May 2012 11:22:23 +0200 Subject: [PATCH] fixed warnings when compiling geo unittest --- UnitTests/Cambridge/georeg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnitTests/Cambridge/georeg.cpp b/UnitTests/Cambridge/georeg.cpp index 637dbef151..ca23ec61c8 100644 --- a/UnitTests/Cambridge/georeg.cpp +++ b/UnitTests/Cambridge/georeg.cpp @@ -141,7 +141,7 @@ double tolerance (double a, double b, double c) { #define icheck(e, a, b) \ BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ - BOOST_CHECK_EQUAL((a), (b)) + BOOST_CHECK_EQUAL((long) (a), (long) (b)) #define pcheck(e, a, b) \ BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ @@ -153,7 +153,7 @@ double tolerance (double a, double b, double c) { #define gccheck(e, gc, ct, bytes) \ BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ - BOOST_CHECK_EQUAL((ct), (gc)->length); \ + BOOST_CHECK_EQUAL((long) (ct),(long) (gc)->length); \ BOOST_CHECK_EQUAL(GCCHECK((gc), (ct), (bytes)), 1) #ifdef DEBUG @@ -166,7 +166,7 @@ double tolerance (double a, double b, double c) { #define gcmass(e, gc, ct, hash) \ BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ - BOOST_CHECK_EQUAL((ct), (gc)->length); \ + BOOST_CHECK_EQUAL((long) (ct), (long) (gc)->length); \ BOOST_TEST_CHECKPOINT(StringUtils::itoa((e + 1))); \ BOOST_CHECK_EQUAL(GCMASS((gc), (ct), (hash)), 1)