From 77dffd7052fc48ff04aa104e1ff7195e19b03126 Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Sun, 15 Jun 2014 12:12:51 +0200 Subject: [PATCH] fix #37 As pointed out in #36 there are a lot of other places where implicit casting to 32bit integer values is happening... Unfortunately, the g2o API has a lot of int in function declarations. I'm not sure if explicit casting is the way to go. Maybe we should clean up the API interface instead... --- g2o/stuff/string_tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g2o/stuff/string_tools.h b/g2o/stuff/string_tools.h index 7e30e8bb0..6d750e647 100644 --- a/g2o/stuff/string_tools.h +++ b/g2o/stuff/string_tools.h @@ -79,7 +79,7 @@ OutputIterator readInts(const char* str, OutputIterator out) char* cl = (char*)str; char* cle = cl; while (1) { - int id = strtol(cl, &cle, 10); + long int id = strtol(cl, &cle, 10); if (cl == cle) break; *out++ = id;