# Warning in Windows build (related to safe_emalloc)

- Thread: https://externals.io/message/3304
- Original archive: https://news-web.php.net/php.internals/3304
- Started by Frank M. Kromann on 2003-07-08T16:37:14+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3304 — Frank M. Kromann — 2003-07-08T16:37:14+00:00

URL: https://externals.io/message/3304#3304

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
