about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-13 20:26:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-13 20:26:47 -0700
commitb24eb4766ad12eceaafa2ee0d620e070e21a3293 (patch)
treed7efc84bce7cf75fa18792d02bceb15480690a2d /002test.cc
parent95b2a140094697dec176167154f9b3b31c2ef70f (diff)
downloadmu-b24eb4766ad12eceaafa2ee0d620e070e21a3293.tar.gz
2773 - switch to 'int'
This should eradicate the issue of 2771.
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/002test.cc b/002test.cc
index bf0611f2..46f07b00 100644
--- a/002test.cc
+++ b/002test.cc
@@ -88,10 +88,10 @@ bool is_integer(const string& s) {
       && s.find('-', 1) == string::npos;  // '-' only at first position
 }
 
-long long int to_integer(string n) {
+int to_integer(string n) {
   char* end = NULL;
   // safe because string.c_str() is guaranteed to be null-terminated
-  long long int result = strtoll(n.c_str(), &end, /*any base*/0);
+  int result = strtoll(n.c_str(), &end, /*any base*/0);
   if (*end != '\0') cerr << "tried to convert " << n << " to number\n";
   assert(*end == '\0');
   return result;