Skip to content

Commit

Permalink
add static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
cldellow committed Jan 2, 2024
1 parent 3ce355a commit ac30cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osm_lua_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ template<> struct kaguya::lua_type_traits<OsmLuaProcessing::OptionalRelation> {
OsmLuaProcessing::OptionalRelation OsmLuaProcessing::NextRelation() {
relationSubscript++;
if (relationSubscript >= relationList.size()) return { true };
return { false, relationList[relationSubscript].first, relationList[relationSubscript].second };
return { false, static_cast<lua_Integer>(relationList[relationSubscript].first), relationList[relationSubscript].second };
}

void OsmLuaProcessing::RestartRelations() {
Expand Down

0 comments on commit ac30cbd

Please sign in to comment.