Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33346 invoked from network); 8 Jul 2003 11:47:22 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 8 Jul 2003 11:47:22 -0000 Received: (qmail 17908 invoked from network); 8 Jul 2003 11:47:14 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 8 Jul 2003 11:47:14 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030708145640.04d504d0@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 08 Jul 2003 14:56:45 +0300 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Warning in Windows build (related to safe_emalloc) From: zeev@zend.com (Zeev Suraski) C:\Projects\php5\Zend\zend_alloc.c(231) : warning C4018: '<' : signed/unsigned mismatch It appears that VC doesn't like the comparison: lval < LONG_MAX - offset because offset is unsigned, it turns LONG_MAX-offset to unsigned as well, and ends up comparing an signed with unsigned. Maybe we should explicitly cast LONG_MAX-offset to long? Zeev