Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 95168 invoked by uid 500); 19 Mar 2002 20:58:17 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 95136 invoked from network); 19 Mar 2002 20:58:17 -0000 Message-Id: <5.1.0.14.2.20020319154757.00a81550@mail.charter.net> X-Sender: gregmm@mail.charter.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 19 Mar 2002 15:51:02 -0500 To: dev@httpd.apache.org From: Greg Marr Subject: Re: 1.3.24-dev new warning... In-Reply-To: <5.1.0.14.2.20020419130607.00b1df00@pop3.rowe-clan.net> References: <00d301c1c65b$b95ba880$93c0b0d0@WROWE04> <00d301c1c65b$b95ba880$93c0b0d0@WROWE04> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 01:07 PM 04/19/2002, William A. Rowe, Jr. wrote: >At 10:03 AM 3/19/2002, you wrote: >>At 10:42 PM -0600 3/7/02, William A. Rowe, Jr. wrote: >> >C:\clean\apache-1.3\src\modules\proxy\proxy_util.c(565) >> > : warning C4018: '<' : signed/unsigned mismatch >> > >> > n = ap_bread(f, buf, MIN(buf_size, len - >> total_bytes_rcvd)); >> >>I had posted a patch regarding this a bit ago... Any feedback? I was >>not able to recreate the exact error messages locally on any of >>my machines, so I couldn't see if it solved the specific problem >>(without creating more :) ). > >Doh! MIN() is implemented in terms of a terniary, and those are very >broken in terms of the result type on win32. Casting the MIN() back >to >the arg type of ap_bread() should be sufficient. I doubt it. The warning is about the '<', which occurs because buf_size is size_t, and len is off_t. BTW, I've never had any troubles with the result type of ?: on Win32. It's always the result type of the true result, which is what it should be, as far as I've seen. Could you be a bit more specific? -- Greg Marr gregm@alum.wpi.edu "We thought you were dead." "I was, but I'm better now." - Sheridan, "The Summoning"