From 37ffda1076b1dad37edffa64ff6363d501cf720d Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 25 Jun 2001 07:57:09 +0000 Subject: [PATCH] 2001-06-24 Ben Elliston * stabs.c (generate_asm_file): Make local variable `len' a size_t. --- gas/ChangeLog | 4 ++++ gas/stabs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 8ce479f2d0f..bc43595c7f3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-06-24 Ben Elliston + + * stabs.c (generate_asm_file): Make local variable `len' a size_t. + 2001-06-24 Jakub Jelinek * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE diff --git a/gas/stabs.c b/gas/stabs.c index eed11b31c69..2a07f22ac2f 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -539,7 +539,7 @@ generate_asm_file (type, file) 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 -- 2.30.2