sdl12-compat: msvc warning fixes

From 8c92d9e5ec64be3cca6848e2c5e2b41591100c52 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 1 May 2021 11:56:56 +0300
Subject: [PATCH] msvc warning fixes

---
 src/SDL12_compat.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 140c1fa..dabad60 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2392,7 +2392,7 @@ EventFilter20to12(void *data, SDL_Event *event20)
         case SDL_TEXTEDITING: return 1;
         case SDL_TEXTINPUT: {
             char *text = event20->text.text;
-            int codePoint = 0;
+            int codePoint;
             while ((codePoint = DecodeUTF8Char(&text)) != 0) {
                 if (codePoint > 0xFFFF) {
                     /* We need to send a UTF-16 surrogate pair. */
@@ -4794,19 +4794,19 @@ SDL_FreeRW(SDL12_RWops *rwops12)
 static int SDLCALL
 RWops20to12_seek(struct SDL12_RWops *rwops12, int offset, int whence)
 {
-    return rwops12->rwops20->seek(rwops12->rwops20, offset, whence);
+    return (int)rwops12->rwops20->seek(rwops12->rwops20, offset, whence);
 }
 
 static int SDLCALL
 RWops20to12_read(struct SDL12_RWops *rwops12, void *ptr, int size, int maxnum)
 {
-    return rwops12->rwops20->read(rwops12->rwops20, ptr, size, maxnum);
+    return (int)rwops12->rwops20->read(rwops12->rwops20, ptr, size, maxnum);
 }
 
 static int SDLCALL
 RWops20to12_write(struct SDL12_RWops *rwops12, const void *ptr, int size, int num)
 {
-    return rwops12->rwops20->write(rwops12->rwops20, ptr, size, num);
+    return (int)rwops12->rwops20->write(rwops12->rwops20, ptr, size, num);
 }
 
 static int SDLCALL