From fbcfa27edf518835976e140ec160db009186bc16 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Apr 2012 13:47:32 +0300 Subject: Fix code style and add some checks. --- src/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics.cpp') diff --git a/src/graphics.cpp b/src/graphics.cpp index 04754a975..f07c6b48d 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -968,7 +968,7 @@ void Graphics::fillRectangle(const gcn::Rectangle& rectangle) for (x = x1; x < x2; x++) { Uint32 *p = p0 + x; - Uint32 dst = *reinterpret_cast(p); + const Uint32 dst = *p; *p = cB[dst & 0xff] | cG[(dst & 0xff00) >> 8] | cR[(dst & 0xff0000) >> 16]; } -- cgit v1.2.3-60-g2f50