This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/RFA] Fix hex number parsing in dw2gencfi.c
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 26 May 2003 13:39:38 -0700
- Subject: Re: [PATCH/RFA] Fix hex number parsing in dw2gencfi.c
- Organization: Wasabi Systems, Inc.
- References: <C7629AEB-8FB5-11D7-9B65-000A957650EC@wasabisystems.com>
On Mon, May 26, 2003 at 01:08:12PM -0700, Jason Thorpe wrote:
> This patch fixes the CFI tests on i386-unknown-netbsdelf2.0. I don't
> know why no one else has seen this before; maybe Linux's sscanf() is
> more forgiving than BSD's?
>
> OK for mainline?
Actually, I withdraw this patch. I just remembered that %i is supposed
to handle 0x... type numbers. I guess there is a problem on my host system;
I will investigate further.
>
> * dw2gencfi.c (cfi_parse_arg): Explicitly check for positive and
> negative hexadecimal numbers and parse them with the appropriate
> sscanf format.
>
> -- Jason R. Thorpe <thorpej@wasabisystems.com>
>
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>