CVS: msp430-libc4/src/stdlib itoa.c,1.1.1.1,1.2 ltoa.c,1.1.1.1,1.2 ultoa.c,1.1.1.1,1.2 utoa.c,1.1.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-libc4/src/stdlib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22847/msp430-libc4/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-libc4/src/stdlib/itoa.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2

Index: ltoa.c
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc4/src/stdlib/ltoa.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- ltoa.c	29 Aug 2005 16:48:48 -0000	1.1.1.1
+++ ltoa.c	31 Aug 2005 11:41:26 -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-libc4/src/stdlib/ultoa.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- ultoa.c	29 Aug 2005 16:48:48 -0000	1.1.1.1
+++ ultoa.c	31 Aug 2005 11:41:26 -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-libc4/src/stdlib/utoa.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.