[redistricter] r213 committed - oops, isnumber is a BSDism. use isdigit for C90 stanardism

0 views
Skip to first unread message

redist...@googlecode.com

unread,
Apr 3, 2011, 2:41:17 PM4/3/11
to redistrict...@googlegroups.com
Revision: 213
Author: brian.olson
Date: Sun Apr 3 11:40:31 2011
Log: oops, isnumber is a BSDism. use isdigit for C90 stanardism
http://code.google.com/p/redistricter/source/detail?r=213

Modified:
/trunk/Solver.cpp

=======================================
--- /trunk/Solver.cpp Sun Apr 3 11:18:14 2011
+++ /trunk/Solver.cpp Sun Apr 3 11:40:31 2011
@@ -636,7 +636,7 @@
int setcount = 0;
while (line != NULL) {
char* c = line;
- while ((c != '\0') && (!isnumber(*c))) {
+ while ((c != '\0') && (!isdigit(*c))) {
c++;
}
char* endp = NULL;
@@ -647,7 +647,7 @@
break;
}
c = endp;
- while ((c != '\0') && (!isnumber(*c))) {
+ while ((c != '\0') && (!isdigit(*c))) {
c++;
}
endp = NULL;

Reply all
Reply to author
Forward
0 new messages