Tweaking types to remove a warning from windows
@@ -414,7 +414,7 @@ blitLine(void* dest, size_t destPitch, int64_t x, int64_t y, int64_t w, uint32_t
int64_t startX = mid(0, x, pitch);
int64_t endX = mid(0, x + w, pitch);
size_t lineWidth = endX - startX;
- uint32_t* bufStart = buf + (size_t)fabs(min(0, x));
+ uint32_t* bufStart = buf + (size_t)fabs(fmin(0, x));
char* line = pixels + ((y * pitch + startX) * 4);
memcpy(line, bufStart, lineWidth * 4);
}
@@ -429,7 +429,7 @@ ENGINE_blitLine(ENGINE* engine, int64_t x, int64_t y, int64_t w, uint32_t* buf)
int64_t startX = mid(0, x, pitch);
int64_t endX = mid(0, x + w, pitch);
size_t lineWidth = min(endX, pitch) - startX;
- uint32_t* bufStart = buf + (size_t)fabs(min(0, x));
+ uint32_t* bufStart = buf + (size_t)fabs(fmin(0, x));
char* line = pixels + ((y * pitch + startX) * 4);
memcpy(line, bufStart, lineWidth * 4);
}
