From d32afbdac55fb0ba112c29c0fb15565ce52c983b Mon Sep 17 00:00:00 2001 From: Kp Date: Wed, 6 Jul 2016 01:54:24 +0000 Subject: [PATCH] Rewrite simple unsigned int casts from C style to static_cast<> s/(unsigned int)\s*(/static_cast(/g --- common/2d/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/2d/bitmap.cpp b/common/2d/bitmap.cpp index 6416cdb30..36cc57e08 100644 --- a/common/2d/bitmap.cpp +++ b/common/2d/bitmap.cpp @@ -132,7 +132,7 @@ void gr_init_sub_bitmap (grs_bitmap &bm, grs_bitmap &bmParent, uint16_t x, uint1 bm.gltexture = bmParent.gltexture; #endif bm.bm_parent = &bmParent; - bm.bm_data = &bmParent.bm_data[(unsigned int)((y*bmParent.bm_rowsize)+x)]; + bm.bm_data = &bmParent.bm_data[static_cast((y*bmParent.bm_rowsize)+x)]; } void decode_data(ubyte *data, uint_fast32_t num_pixels, array &colormap, array &count)