Skip to content

Commit

Permalink
Deal with warnings about reinterpret_cast sizes on the 64 bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 23, 2019
1 parent 12e7e3e commit ec59b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl/userevent.hpp
Expand Up @@ -38,7 +38,7 @@ class UserEvent
event_.code = code;
}

UserEvent(int type, int code, int data1, int data2) : UserEvent(type)
UserEvent(int type, int code, std::size_t data1, std::size_t data2) : UserEvent(type)
{
event_.code = code;
event_.data1 = reinterpret_cast<void*>(data1);
Expand Down

0 comments on commit ec59b33

Please sign in to comment.