Module: sems
Branch: master
Commit: ecd9f8d5fc4182b902c391d97dd3d2d2064134d3
URL: 
https://github.com/sems-server/sems/commit/ecd9f8d5fc4182b902c391d97dd3d2d2064134d3

Author: Mikko Lehto <msle...@iki.fi>
Committer: Mikko Lehto <msle...@iki.fi>
Date: 2015-06-11T19:45:48+03:00

make log_offset long'er to avoid compiler warning on 32 bit system

logfile-splitter.cpp:37:39: warning: comparison of constant
9223372036854775807 with expression of type 'long' is always false
  [-Wtautological-constant-out-of-range-compare]

---

Modified: tools/logfile-splitter.cpp

---

Diff:  
https://github.com/sems-server/sems/commit/ecd9f8d5fc4182b902c391d97dd3d2d2064134d3.diff
Patch: 
https://github.com/sems-server/sems/commit/ecd9f8d5fc4182b902c391d97dd3d2d2064134d3.patch

---

diff --git a/tools/logfile-splitter.cpp b/tools/logfile-splitter.cpp
index 0d07e10..c2c709b 100644
--- a/tools/logfile-splitter.cpp
+++ b/tools/logfile-splitter.cpp
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
     exit(1);
   }
 
-  long int log_offset = -1;
+  long long int log_offset = -1;
   char* endptr;
   log_offset = strtoll(argv[3], &endptr, 10); // offset of thread
   if ((errno == ERANGE && (log_offset == LLONG_MAX || log_offset == LLONG_MIN))

_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to