[rhmessaging-commits] rhmessaging commits: r2348 - store/branches/mrg-1.0/cpp/lib/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Aug 22 08:26:48 EDT 2008


Author: kpvdr
Date: 2008-08-22 08:26:48 -0400 (Fri, 22 Aug 2008)
New Revision: 2348

Modified:
   store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp
Log:
Fixed a 64-32bit conversion error introduced in the last checkin

Modified: store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp	2008-08-22 12:26:24 UTC (rev 2347)
+++ store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp	2008-08-22 12:26:48 UTC (rev 2348)
@@ -43,6 +43,7 @@
 #include "jrnl/jerrno.hpp"
 #include "jrnl/jinf.hpp"
 #include "jrnl/slock.hpp"
+#include <limits>
 #include <sstream>
 #include <unistd.h>
 
@@ -868,7 +869,7 @@
         if (ifsp->eof() || !ifsp->good())
         {
             rd._eo = ifsp->tellg(); // remember file offset before closing
-            assert(rd._eo != 0xffffffffffffffff); // Check for error code -1
+            assert(rd._eo != std::numeric_limits<std::size_t>::max()); // Check for error code -1
             ifsp->close();
             if (++fid >= _num_jfiles)
             {




More information about the rhmessaging-commits mailing list