Skip to content

Commit

Permalink
The argument type in overridden StrokeLines() is fixed (int ->size_t)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshinagata committed Jan 20, 2020
1 parent e7d96a6 commit 59bfe83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wxLua/bindings/wxwidgets/wxcore_override.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ static int LUACALL wxLua_wxGraphicsContext_StrokeLines1(lua_State *L)
// get this
wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext);
// call StrokeLines
self->StrokeLines((int)(beginPoints ? beginPoints->size() : 0), (beginPoints && (!beginPoints->empty())) ? &beginPoints->at(0) : NULL, (endPoints && (!endPoints->empty())) ? &endPoints->at(0) : NULL);
self->StrokeLines((size_t)(beginPoints ? beginPoints->size() : 0), (beginPoints && (!beginPoints->empty())) ? &beginPoints->at(0) : NULL, (endPoints && (!endPoints->empty())) ? &endPoints->at(0) : NULL);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion wxLua/modules/wxbind/src/wxcore_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3614,7 +3614,7 @@ static int LUACALL wxLua_wxGraphicsContext_StrokeLines1(lua_State *L)
// get this
wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext);
// call StrokeLines
self->StrokeLines((int)(beginPoints ? beginPoints->size() : 0), (beginPoints && (!beginPoints->empty())) ? &beginPoints->at(0) : NULL, (endPoints && (!endPoints->empty())) ? &endPoints->at(0) : NULL);
self->StrokeLines((size_t)(beginPoints ? beginPoints->size() : 0), (beginPoints && (!beginPoints->empty())) ? &beginPoints->at(0) : NULL, (endPoints && (!endPoints->empty())) ? &endPoints->at(0) : NULL);

return 0;
}
Expand Down

0 comments on commit 59bfe83

Please sign in to comment.