* device/include/pic/pic14regs.h: reverted accidental wipe of the file
[fw/sdcc] / device / lib / _itoa.c
index b282dac69839e99f6d298b54f12859bf5e4248a2..f89ba9e497c05a84b3a9ed6fadbd861d57ebcc57 100755 (executable)
@@ -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);
 }
-