CVS: msp430-libc/src/stdlib itoa.c,1.2,1.3 ltoa.c,1.1,1.2 ultoa.c,1.1,1.2 utoa.c,1.1,1.2
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/msp430-libc/src/stdlib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21499/msp430-libc/src/stdlib
Modified Files:
itoa.c ltoa.c ultoa.c utoa.c
Log Message:
- fix utoa and lutoa
- convert tabs to spaces
Index: itoa.c
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/stdlib/itoa.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
Index: ltoa.c
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/stdlib/ltoa.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- ltoa.c 23 Aug 2004 20:23:15 -0000 1.1
+++ ltoa.c 31 Aug 2005 11:39:47 -0000 1.2
@@ -23,13 +23,13 @@
//construct a backward string of the number.
do {
- digit = (unsigned int)num % radix;
+ digit = (unsigned long)num % radix;
if (digit < 10)
temp[temp_loc++] = digit + '0';
else
temp[temp_loc++] = digit - 10 + 'A';
- ((unsigned int)num) /= radix;
- } while ((unsigned int)num > 0);
+ ((unsigned long)num) /= radix;
+ } while ((unsigned long)num > 0);
//now add the sign for radix 10
if (radix == 10 && sign) {
Index: ultoa.c
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/stdlib/ultoa.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- ultoa.c 23 Aug 2004 20:23:15 -0000 1.1
+++ ultoa.c 31 Aug 2005 11:39:47 -0000 1.2
@@ -16,13 +16,13 @@
//construct a backward string of the number.
do {
- digit = (unsigned int)num % radix;
+ digit = (unsigned long)num % radix;
if (digit < 10)
temp[temp_loc++] = digit + '0';
else
temp[temp_loc++] = digit - 10 + 'A';
- ((unsigned int)num) /= radix;
- } while ((unsigned int)num > 0);
+ ((unsigned long)num) /= radix;
+ } while ((unsigned long)num > 0);
temp_loc--;
Index: utoa.c
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/stdlib/utoa.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf