Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53537 invoked from network); 8 Jul 2003 16:36:51 -0000 Received: from unknown (HELO mail.kromann.info) (64.186.239.125) by pb1.pair.com with SMTP; 8 Jul 2003 16:36:51 -0000 Received: from Swwwing2000 (unknown [64.186.239.115]) by mail.kromann.info (Postfix) with SMTP id 9E3122AF77; Tue, 8 Jul 2003 09:36:57 -0700 (PDT) To: zeev@zend.com Cc: internals@lists.php.net X-Mailer: Swwwing 2000 Message-ID: <10576822320920000@9866357972520000.9866341568840000> MIME-Version: 1.0 Reply-To: "Frank M. Kromann" Date: Tue, 08 Jul 2003 09:37:14 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Warning in Windows build (related to safe_emalloc) From: frank@kromann.info ("Frank M. Kromann") Hi Zeev, Casting offset to long should be enough. - Frank > 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 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >