mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix a small bug in %x when padding is being added
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19092 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c46d9867e3
commit
f6791faedd
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,7 @@ static int format(
|
||||||
|
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
|
pad='0';
|
||||||
uval = va_arg (ap, int);
|
uval = va_arg (ap, int);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -133,6 +134,7 @@ static int format(
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
|
pad='0';
|
||||||
ulval = va_arg (ap, long);
|
ulval = va_arg (ap, long);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue