Author: kpvdr
Date: 2008-08-22 08:26:24 -0400 (Fri, 22 Aug 2008)
New Revision: 2347
Modified:
store/trunk/cpp/lib/jrnl/jcntl.cpp
Log:
Fixed a 64-32bit conversion error introduced in the last checkin
Modified: store/trunk/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/trunk/cpp/lib/jrnl/jcntl.cpp 2008-08-21 21:47:23 UTC (rev 2346)
+++ store/trunk/cpp/lib/jrnl/jcntl.cpp 2008-08-22 12:26:24 UTC (rev 2347)
@@ -43,6 +43,7 @@
#include "jrnl/jerrno.hpp"
#include "jrnl/jinf.hpp"
#include "jrnl/slock.hpp"
+#include <limits>
#include <sstream>
#include <unistd.h>
@@ -863,7 +864,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)
{
Show replies by date