diff options
author | kdx <kikoodx@paranoici.org> | 2023-05-03 00:53:29 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-05-03 00:53:29 +0200 |
commit | b2a3baf7f6ebbb5442443634f2faac4953c7b732 (patch) | |
tree | 7941a327e0036ee7d410b0ba7d64e6e58b9dbf30 | |
parent | cccddfc6d78afaeac27e6283d62b20b81373ddb9 (diff) | |
download | px-b2a3baf7f6ebbb5442443634f2faac4953c7b732.tar.gz |
?: caused issues with signedness
-rw-r--r-- | src/px.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -164,10 +164,10 @@ pxRectfill(int x0, int y0, int x1, int y1, PxCol col) void _pxSpr(const PxSprArgs *args) { - int w = (args->w < 0) ? (args->spr->w) : (args->w); + int w = (args->w < 0) ? (int)(args->spr->w) : (args->w); w = pxMin(w, args->spr->w - args->ix); - int h = (args->h < 0) ? (args->spr->h) : (args->h); + int h = (args->h < 0) ? (int)(args->spr->h) : (args->h); h = pxMin(h, args->spr->h - args->iy); for (int y = 0; y < h; y++) { |