X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Mon, 22 Mar 2004 12:12:40 -0500 Message-Id: <200403221712.i2MHCeik004358@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (message from =?iso-8859-15?Q?Rafael_Garc=EDa?= on Mon, 22 Mar 2004 17:54:51 +0100) Subject: Re: strange comparison error References: Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > if (pcampo>reg+MAXFIELDS) { // intercept huge (bad) values If integer overflow is the culprit, you'll find this a bit safer: if (pcampo-reg > MAXFIELDS) { // intercept huge (bad) values