Skip to content

Commit

Permalink
Move brace out of conditional blocks
Browse files Browse the repository at this point in the history
Co-authored-by: gresm <[email protected]>
  • Loading branch information
ankith26 and gresm authored Nov 5, 2024
1 parent 1766493 commit f295ce5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src_c/surflock.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ pgSurface_LockBy(pgSurfaceObject *surfobj, PyObject *lockobj)
pgSurface_Prep(surfobj);
}
#if SDL_VERSION_ATLEAST(3, 0, 0)
if (!SDL_LockSurface(surf->surf)) {
if (!SDL_LockSurface(surf->surf))
#else
if (SDL_LockSurface(surf->surf) == -1) {
if (SDL_LockSurface(surf->surf) == -1)
#endif
{
PyErr_SetString(PyExc_RuntimeError, "error locking surface");
return 0;
}
Expand Down

0 comments on commit f295ce5

Please sign in to comment.