about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/002test.cc b/002test.cc
index 81bcba6d..76bf02cf 100644
--- a/002test.cc
+++ b/002test.cc
@@ -53,7 +53,7 @@ if (Run_tests) {
   // End Test Run Initialization
   time_t t; time(&t);
   cerr << "C tests: " << ctime(&t);
-  for (index_t i=0; i < sizeof(Tests)/sizeof(Tests[0]); ++i) {
+  for (size_t i=0; i < sizeof(Tests)/sizeof(Tests[0]); ++i) {
     run_test(i);
   }
   // End Tests
@@ -68,7 +68,7 @@ if (Run_tests) {
 }
 
 :(code)
-void run_test(index_t i) {
+void run_test(size_t i) {
   if (i >= sizeof(Tests)/sizeof(Tests[0])) {
     cerr << "no test " << i << '\n';
     return;
@@ -81,7 +81,7 @@ void run_test(index_t i) {
 }
 
 bool is_integer(const string& s) {
-  return s.find_first_not_of("0123456789-") == NOT_FOUND;
+  return s.find_first_not_of("0123456789-") == string::npos;
 }
 
 long long int to_integer(string n) {