Skip to content

Commit

Permalink
fix #37
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
Rainer Kuemmerle committed Jun 15, 2014
1 parent 057fc55 commit 77dffd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2o/stuff/string_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77dffd7

Please sign in to comment.