This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[Patch] Eliminate warning from stabs.c
- To: binutils at sources dot redhat dot com
- Subject: [Patch] Eliminate warning from stabs.c
- From: Ben Elliston <bje at redhat dot com>
- Date: Sun, 24 Jun 2001 16:05:06 +1000 (EST)
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