* kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
`0x' qualifier as 0 when base is specified as parameter).
+2009-02-27 Robert Millan <rmh@aybabtu.com>
+
+ * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
+ `0x' qualifier as 0 when base is specified as parameter).
+
2009-02-24 Bean <bean123ch@gmail.com>
* configure.ac: Check for -mcmodel=large in x86_64 target.
/* Guess the base, if not specified. The prefix `0x' means 16, and
the prefix `0' means 8. */
- if (base == 0 && str[0] == '0')
+ if (str[0] == '0')
{
if (str[1] == 'x')
{
str += 2;
}
}
- else if (str[1] >= '0' && str[1] <= '7')
+ else if (base == 0 && str[1] >= '0' && str[1] <= '7')
base = 8;
}