From 167217bec15c9c7aa70ba2a3dc9c689b3cd91872 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 14 May 2001 14:19:32 +0000 Subject: import new version of dietlibc --- mdk-stage1/dietlibc/lib/__ltostr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mdk-stage1/dietlibc/lib/__ltostr.c') diff --git a/mdk-stage1/dietlibc/lib/__ltostr.c b/mdk-stage1/dietlibc/lib/__ltostr.c index b2ebeb074..57e0690d2 100644 --- a/mdk-stage1/dietlibc/lib/__ltostr.c +++ b/mdk-stage1/dietlibc/lib/__ltostr.c @@ -1,7 +1,5 @@ #include -static char *num="0123456789abcdefghijklmnopqrstuvwxyz"; - int __ltostr(char *s, int size, unsigned long i, int base, char UpCase) { char *tmp; @@ -23,8 +21,7 @@ int __ltostr(char *s, int size, unsigned long i, int base, char UpCase) while((tmp>s)&&(i)) { tmp--; - *tmp=num[i%base]; - if ((UpCase)&&(*tmp>96)) (*tmp)-=' '; + if ((*tmp=i%base+'0')>'9') *tmp+=(UpCase?'A':'a')-'9'-1; i=i/base; j++; } -- cgit v1.2.1