fix compilation bug on osx
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 27 Feb 2008 17:39:32 +0100
changeset 2495 91109d479b4c
parent 2494 1c69ea12779c
child 2496 e91c92db28c0
fix compilation bug on osx
src/core/attribute-test.cc
--- a/src/core/attribute-test.cc	Wed Feb 27 00:05:23 2008 +0100
+++ b/src/core/attribute-test.cc	Wed Feb 27 17:39:32 2008 +0100
@@ -350,7 +350,7 @@
   NS_TEST_ASSERT (!p->SetAttribute("TestUint8", "-1"));
   CHECK_GET_STR (p, "TestUint8", "255");
   CHECK_GET_PARAM (p, "TestUint8", Uinteger, 255);
-  NS_TEST_ASSERT (!p->SetAttribute("TestUint8", Uinteger (-1)));
+  NS_TEST_ASSERT (!p->SetAttribute("TestUint8", Uinteger ((uint64_t)-1)));
   CHECK_GET_STR (p, "TestUint8", "255");
   CHECK_GET_PARAM (p, "TestUint8", Uinteger, 255);