projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed endif
[fw/sdcc]
/
device
/
lib
/
_itoa.c
diff --git
a/device/lib/_itoa.c
b/device/lib/_itoa.c
old mode 100755
(executable)
new mode 100644
(file)
index
b282dac
..
f89ba9e
--- a/
device/lib/_itoa.c
+++ b/
device/lib/_itoa.c
@@
-40,10
+40,7
@@
void _itoa(int value, char* string, unsigned char radix)
{
if (value < 0 && radix == 10) {
*string++ = '-';
- _uitoa(-value, string, radix);
- }
- else {
- _uitoa(value, string, radix);
+ value = -value;
}
+ _uitoa(value, string, radix);
}
-