delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/13/19:30:59

Date: Tue, 13 Jun 2000 19:30:54 -0400
Message-Id: <200006132330.TAA23228@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <3946A93A.8805F454@softhome.net> (message from Laurynas Biveinis
on Wed, 14 Jun 2000 00:35:54 +0300)
Subject: Re: A fix for warning in dosexec.c
References: <3946A93A DOT 8805F454 AT softhome DOT net>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> i is compared with sizeof(line) which is unsigned.
> 
> OK to commit?

No, because later that same i is used to hold the return value of the
function, which is a signed int.  How about creating a new unsigned
variable `u' or something like that?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019