On Wed, 19 Feb 2003 18:51:42 -0500, "Davlet Panech" <[EMAIL PROTECTED]> wrote:
>Hello, > >I'm getting the following warning in gcc 3.2/CYGWIN/boost 1.29: > >% /cygdrive/c/boost/boost_1_29_0/boost/cast.hpp:178: warning: decimal >constant is so large that it is unsigned > >173: static long long min() >174: { >175: #ifdef LONGLONG_MIN >176: return LONGLONG_MIN; >177: #else >178: return -9223372036854775808LL; // hope this is portable >179: #endif >180: } > > [...] > > >Is that a problem? Whether that's a problem or not depends on your point of view. The way I see it, it *is* an error, even if in the end it works anyway. Better writing: -9223372036854775807LL - 1 though of course that's not portable either. You might be interested in this and its surrounding thread (and in your limits.h header): http://google.com/groups?selm=q303su804jh35pbrutlhhoa98og7572rpu%404ax.com Genny. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost