|
From: Carlo W. <li...@us...> - 2001-12-30 20:55:53
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2001-11-30 20:55:52 UTC
Modified files:
libcwd/debug.cc
Log message:
FreeBSD bug fix.
---------------------- diff included ----------------------
Index: src/libcwd/debug.cc
diff -u src/libcwd/debug.cc:1.49 src/libcwd/debug.cc:1.50
--- src/libcwd/debug.cc:1.49 Sat Dec 29 20:17:46 2001
+++ src/libcwd/debug.cc Sun Dec 30 12:55:42 2001
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/l/li/libcw/src/libcwd/debug.cc,v 1.49 2001/12/30 04:17:46 libcw Exp $
+// $Header: /cvsroot/l/li/libcw/src/libcwd/debug.cc,v 1.50 2001/12/30 20:55:42 libcw Exp $
//
// Copyright (C) 2000 - 2001, by
//
@@ -951,7 +951,9 @@
if (corelim.rlim_max != RLIM_INFINITY)
{
_off = -1;
- Dout(dc::warning, "core size is limited (hard limit: " << (corelim.rlim_max / 1024) << " kb). Core dumps might be truncated!");
+ // The cast is necessary on platforms where corelim.rlim_max is long long
+ // and libstdc++ was not compiled with support for long long.
+ Dout(dc::warning, "core size is limited (hard limit: " << (unsigned long)(corelim.rlim_max / 1024) << " kb). Core dumps might be truncated!");
#ifndef DEBUGDEBUG
_off = 0;
#endif
----------------------- End of diff -----------------------
|