Re: Re: cvs: php4 /main streams.c
| From: | Wez Furlong | Date: | Mon, 23 Sep 2002 17:16:37 +0000 |
| Subject: | Re: Re: cvs: php4 /main streams.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88540@lists.php.net to get a copy of this message | ||
Can you try this instead:
if (eol && (size_t)((ptrdiff_t)eol + 1 - (ptrdiff_t)readptr) <= maxlen - 1) {
justread = eol + 1 - readptr;
It's looking really ugly - maybe there is a better way?
--Wez.
On 09/23/02, "Sebastian Bergmann" <sebastian@php.net> wrote:
> It compiles again, but:
>
> c:\home\php\php4\main\streams.c(517): warning C4018:
> '<=': Conflict between signed and unsigned