Added explicit braces (#3937)

Added explicit braces
This commit is contained in:
Hugo 2019-07-03 15:05:15 +03:00 committed by GitHub
commit 50693f8e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ typedef void (*hline_handler)(Imaging, int, int, int, int);
static inline void static inline void
point8(Imaging im, int x, int y, int ink) point8(Imaging im, int x, int y, int ink)
{ {
if (x >= 0 && x < im->xsize && y >= 0 && y < im->ysize) if (x >= 0 && x < im->xsize && y >= 0 && y < im->ysize) {
if (strncmp(im->mode, "I;16", 4) == 0) { if (strncmp(im->mode, "I;16", 4) == 0) {
im->image8[y][x*2] = (UINT8) ink; im->image8[y][x*2] = (UINT8) ink;
im->image8[y][x*2+1] = (UINT8) ink; im->image8[y][x*2+1] = (UINT8) ink;
@ -74,6 +74,7 @@ point8(Imaging im, int x, int y, int ink)
im->image8[y][x] = (UINT8) ink; im->image8[y][x] = (UINT8) ink;
} }
} }
}
static inline void static inline void
point32(Imaging im, int x, int y, int ink) point32(Imaging im, int x, int y, int ink)