From dac0a3e86e5db45e0174a1e75be06979f197b0e0 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 25 Mar 2017 23:19:41 +0000 Subject: (svn r27829) -Fix (r27821): Occasional crash caused by mixing int/uint arithmetic. --- src/gfx_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gfx_func.h') diff --git a/src/gfx_func.h b/src/gfx_func.h index 44f5e5059..99461f907 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -149,7 +149,7 @@ bool FillDrawPixelInfo(DrawPixelInfo *n, int left, int top, int width, int heigh * @param size The height or width of the object to draw. * @return Offset of where to start drawing the object. */ -static inline int CenterBounds(int min, int max, uint size) +static inline int CenterBounds(int min, int max, int size) { return min + (max - min - size + 1) / 2; } -- cgit v1.2.3-54-g00ecf