mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
* kern/misc.c (grub_ltoa): Fix cast when handling negative
values. Noticed by Pavel Roskin.
This commit is contained in:
1 parent
5b5d4aa5f0
commit
56bc2471ad
2 files changed
+6
-1
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2009-04-12 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* kern/misc.c (grub_ltoa): Fix cast when handling negative
|
||||||
|
values. Noticed by Pavel Roskin.
|
||||||
|
|
||||||
2009-04-12 Pavel Roskin <proski@gnu.org>
|
2009-04-12 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Change the logic when we check for target tools.
|
* configure.ac: Change the logic when we check for target tools.
|
||||||
|
|||||||
+1
-1
@@ -598,7 +598,7 @@ grub_ltoa (char *str, int c, unsigned long n)
|
|||||||
|
|
||||||
if ((long) n < 0 && c == 'd')
|
if ((long) n < 0 && c == 'd')
|
||||||
{
|
{
|
||||||
n = (unsigned) (-((long) n));
|
n = (unsigned long) (-((long) n));
|
||||||
*str++ = '-';
|
*str++ = '-';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user