Gabriel Sechan wrote:
----------------------------------------
Date: Mon, 31 Mar 2008 16:24:43 -0700
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: C++0X gets lambdas/closures
Gabriel Sechan wrote:
Would this be correct?
"""
#include
...
if (libretval_x & INT_MAX < mysigned_x)
do something..
"""
Actually, signed vs unsigned is probably the most common warning out there.
Its due to a lot of APIs deciding to use unsigned if there's no reason for
something to be negative, and a lot of programmers just using int if there's no
reason not to.
It's still not clear if libretval_x is unsigned or signed, (or if
mysigned_x is poorly named), so I'm not sure if this is really what is
going on here. For all we know, libreval_x is a function pointer. ;-)
--Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg