2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
* kern/misc.c (grub_strtoull): Guess the base only if not specified.
This commit is contained in:
parent
4f0acd3924
commit
da849d2df5
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
|
||||||
|
|
||||||
|
* kern/misc.c (grub_strtoull): Guess the base only if not
|
||||||
|
specified.
|
||||||
|
|
||||||
2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
|
2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
|
||||||
|
|
||||||
* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
|
* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
|
||||||
|
|
|
@ -366,7 +366,7 @@ grub_strtoull (const char *str, char **end, int base)
|
||||||
|
|
||||||
/* Guess the base, if not specified. The prefix `0x' means 16, and
|
/* Guess the base, if not specified. The prefix `0x' means 16, and
|
||||||
the prefix `0' means 8. */
|
the prefix `0' means 8. */
|
||||||
if (str[0] == '0')
|
if (base == 0 && str[0] == '0')
|
||||||
{
|
{
|
||||||
if (str[1] == 'x')
|
if (str[1] == 'x')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue