This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Patch] Eliminate warning from stabs.c


One more little warning fix.  Okay to commit?


2001-06-24  Ben Elliston  <bje@redhat.com>

	* stabs.c (generate_asm_file): Make local variable `len' a size_t.

Index: stabs.c
===================================================================
RCS file: /cvs/src/src/gas/stabs.c,v
retrieving revision 1.12
diff -u -r1.12 stabs.c
--- stabs.c     2001/03/15 19:30:32     1.12
+++ stabs.c     2001/06/24 06:04:26
@@ -539,7 +539,7 @@
   while (tmp < endp)
     {
       char *bslash = strchr (tmp, '\\');
-      int len = (bslash ? (bslash - tmp + 1) : strlen (tmp));
+      size_t len = (bslash) ? (size_t) (bslash - tmp + 1) : strlen (tmp);
 
       /* Double all backslashes, since demand_copy_C_string (used by
         s_stab to extract the part in quotes) will try to replace them as


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]