[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] qtest: fix hex2nib for capital characters
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-trivial] [PATCH] qtest: fix hex2nib for capital characters |
Date: |
Sun, 8 Jun 2014 17:58:26 +0300 |
On Tue, May 27, 2014 at 12:16:00PM +0400, address@hidden wrote:
> From: Sergey Fedorov <address@hidden>
>
> Signed-off-by: Sergey Fedorov <address@hidden>
Applied, thanks!
> ---
> qtest.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/qtest.c b/qtest.c
> index 2aba20d..87ccd62 100644
> --- a/qtest.c
> +++ b/qtest.c
> @@ -148,7 +148,7 @@ static int hex2nib(char ch)
> } else if (ch >= 'a' && ch <= 'f') {
> return 10 + (ch - 'a');
> } else if (ch >= 'A' && ch <= 'F') {
> - return 10 + (ch - 'a');
> + return 10 + (ch - 'A');
> } else {
> return -1;
> }
> --
> 1.9.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-trivial] [PATCH] qtest: fix hex2nib for capital characters,
Michael S. Tsirkin <=