Commit 1f21484bdd2c0e97b17899176c4e88067432308b

Sam Lantinga 2013-10-03T03:31:05

Fixed const/non-const warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/render/SDL_yuv_sw.c b/src/render/SDL_yuv_sw.c
index a978d4b..14b825d 100644
--- a/src/render/SDL_yuv_sw.c
+++ b/src/render/SDL_yuv_sw.c
@@ -1190,7 +1190,8 @@ SDL_SW_UpdateYUVTexturePlanar(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
                               const Uint8 *Uplane, int Upitch,
                               const Uint8 *Vplane, int Vpitch)
 {
-    Uint8 *src, *dst;
+    const Uint8 *src;
+    Uint8 *dst;
     int row;
     size_t length;