Skip to content

Commit

Permalink
"conversion from unsigned int to const long requires a narrowing conv…
Browse files Browse the repository at this point in the history
…ersion" and why do you care so much to make this an error? GCC 9.3 is fine with it, it is taking an unsigned int (32-bit integer) and converting it to a signed long (32/64-bit signed integer). So what?
  • Loading branch information
joncampbell123 committed Jan 2, 2025
1 parent 3cfa180 commit 9db0569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/sdl_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ namespace WLGUI {
void ObjSDLSurface::initFromSurface(void) {
viewport.w = abs(surface->w);
viewport.h = abs(surface->h);
scaleSrc = { viewport.w, viewport.h };
scaleDst = { viewport.w, viewport.h };
scaleSrc = { (long)viewport.w, (long)viewport.h };
scaleDst = { (long)viewport.w, (long)viewport.h };
ColorDescription.BitsPerPixel = surface->format->BitsPerPixel;
ColorDescription.BytesPerPixel = surface->format->BytesPerPixel;

Expand Down

0 comments on commit 9db0569

Please sign in to comment.