From 5995abe79d1c315756524531ddd9efe538654cf5 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Fri, 7 May 2004 21:43:52 +0000 Subject: ChangeLogTag:Fri May 7 14:42:22 2004 Ossama Othman --- ASNMP/tests/Counter_Test.cpp | 2 +- ASNMP/tests/Gauge_Test.cpp | 2 +- ASNMP/tests/Integer_Test.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ASNMP/tests') diff --git a/ASNMP/tests/Counter_Test.cpp b/ASNMP/tests/Counter_Test.cpp index 28bbe47d873..fb5447ad396 100644 --- a/ASNMP/tests/Counter_Test.cpp +++ b/ASNMP/tests/Counter_Test.cpp @@ -117,7 +117,7 @@ static void TestCounter() c1 = def; // unsigned long ACE_ASSERT(c1 == def); c1 = us; // unsigned short - ACE_ASSERT(c1 == us); + ACE_ASSERT(c1 == static_cast (us)); c1 = si; // unsigned short ACE_ASSERT(c1 == static_cast (si)); #endif /*ACE_WIN32*/ diff --git a/ASNMP/tests/Gauge_Test.cpp b/ASNMP/tests/Gauge_Test.cpp index d47b22b7169..b87795fb174 100644 --- a/ASNMP/tests/Gauge_Test.cpp +++ b/ASNMP/tests/Gauge_Test.cpp @@ -114,7 +114,7 @@ TestGuage (void) g1 = def; // unsigned long ACE_ASSERT(g1 == def); g1 = us; // unsigned short - ACE_ASSERT(g1 == us); + ACE_ASSERT(g1 == static_cast (us)); g1 = si; // unsigned short ACE_ASSERT(g1 == static_cast (si)); #endif /*ACE_WIN32*/ diff --git a/ASNMP/tests/Integer_Test.cpp b/ASNMP/tests/Integer_Test.cpp index 73963f321af..96601281062 100644 --- a/ASNMP/tests/Integer_Test.cpp +++ b/ASNMP/tests/Integer_Test.cpp @@ -178,9 +178,9 @@ static void TestUnsignedInteger32() u1 = def; // unsigned long ACE_ASSERT(u1 == def); u1 = us; // unsigned short - ACE_ASSERT(u1 == us); + ACE_ASSERT(u1 == static_cast (us)); u1 = si; // unsigned short - ACE_ASSERT(u1 == si); + ACE_ASSERT(u1 == static_cast (si)); #endif /*ACE_WIN32 */ } -- cgit v1.2.1