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

* stabs.c (generate_asm_file): Make local variable `len' a size_t.
This commit is contained in:
Ben Elliston 2001-06-25 07:57:09 +00:00
parent af3fc3bcb3
commit 37ffda1076
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-06-24 Ben Elliston <bje@redhat.com>
* stabs.c (generate_asm_file): Make local variable `len' a size_t.
2001-06-24 Jakub Jelinek <jakub@redhat.com>
* config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE

View File

@ -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