Skip to content

Commit f295ce5

Browse files
ankith26gresm
andauthored
Move brace out of conditional blocks
Co-authored-by: gresm <78505251+gresm@users.noreply.github.com>
1 parent 1766493 commit f295ce5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src_c/surflock.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ pgSurface_LockBy(pgSurfaceObject *surfobj, PyObject *lockobj)
100100
pgSurface_Prep(surfobj);
101101
}
102102
#if SDL_VERSION_ATLEAST(3, 0, 0)
103-
if (!SDL_LockSurface(surf->surf)) {
103+
if (!SDL_LockSurface(surf->surf))
104104
#else
105-
if (SDL_LockSurface(surf->surf) == -1) {
105+
if (SDL_LockSurface(surf->surf) == -1)
106106
#endif
107+
{
107108
PyErr_SetString(PyExc_RuntimeError, "error locking surface");
108109
return 0;
109110
}

0 commit comments

Comments
 (0)