From: Daniel Jacobowitz Date: Thu, 13 Jul 2006 04:05:54 +0000 (+0000) Subject: * remote.c (unpack_varlen_hex): Correct type of retval. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d49c44d5f19771810279034d93060d13c13f0937;p=binutils-gdb.git * remote.c (unpack_varlen_hex): Correct type of retval. Reported by Zhigang Gong . --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3652bd20992..4cd5bde6aaa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-07-12 Daniel Jacobowitz + + * remote.c (unpack_varlen_hex): Correct type of retval. + Reported by Zhigang Gong . + 2006-07-12 Daniel Jacobowitz * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted diff --git a/gdb/remote.c b/gdb/remote.c index 687a5d8f7e3..7b4f55bef7c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1188,7 +1188,7 @@ unpack_varlen_hex (char *buff, /* packet to parse */ ULONGEST *result) { int nibble; - int retval = 0; + ULONGEST retval = 0; while (ishex (*buff, &nibble)) {