delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/20/13:06:31

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200106201705.TAA22782@father.ludd.luth.se>
Subject: Re: More signed/unsigned issues
In-Reply-To: <3028-Wed20Jun2001102214+0300-eliz@is.elta.co.il> from Eli Zaretskii at "Jun 20, 2001 10:22:15 am"
To: djgpp-workers AT delorie DOT com
Date: Wed, 20 Jun 2001 19:05:12 +0200 (MET DST)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
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

Nearly there:

Index: src/debug/common/v2load.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/debug/common/v2load.c,v
retrieving revision 1.5
diff -p -u -r1.5 v2load.c
--- src/debug/common/v2load.c   1999/12/14 12:01:22     1.5
+++ src/debug/common/v2load.c   2001/06/20 16:56:54
@@ -245,9 +245,9 @@ int v2loadimage(const char *program, con
     return -1;
   if(read_section(pf, client_ds, data_foffset, data_soffset, data_size) )
     return -1;
-  for (i=0; i+3<bss_size; i+= 4)
+  for (i=0; i+3<(signed)bss_size; i+= 4)
     _farpokel(client_ds, bss_soffset+i, 0);
-  for (; i<bss_size; i++)
+  for (; i<(signed)bss_size; i++)
     _farpokeb(client_ds, bss_soffset+i, 0);

   close(pf);
Index: src/libc/ansi/stdio/flsbuf.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/ansi/stdio/flsbuf.c,v
retrieving revision 1.9
diff -p -u -r1.9 flsbuf.c
--- src/libc/ansi/stdio/flsbuf.c        2001/06/09 20:33:22     1.9
+++ src/libc/ansi/stdio/flsbuf.c        2001/06/20 16:56:55
@@ -17,7 +17,8 @@ int
 _flsbuf(int c, FILE *f)
 {
   char *base;
-  int n, rn;
+  int n;
+  size_t rn;
   char c1;
   size_t size;

Index: src/stub/stubedit.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/stub/stubedit.c,v
retrieving revision 1.4
diff -p -u -r1.4 stubedit.c
--- src/stub/stubedit.c 2001/06/09 21:42:39     1.4
+++ src/stub/stubedit.c 2001/06/20 16:57:39
@@ -170,7 +170,7 @@ void num_s2v(void *addr, char *buf, int
 struct {
   char *short_name;
   char *long_name;
-  int offset_of_field;
+  unsigned long offset_of_field;
   PerFunc val2string;
   PerFunc string2val;
   int max;

- Raw text -


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