Re: Warning in Windows build (related to safe_emalloc)
| From: | Frank M. Kromann | Date: | Tue, 08 Jul 2003 16:37:14 +0000 |
| Subject: | Re: Warning in Windows build (related to safe_emalloc) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-3304@lists.php.net to get a copy of this message | ||
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
>