From 9cf59647acda671e41f148c90b3a00bc46719c05 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 6 Jul 2022 07:58:57 -0700
Subject: [PATCH] Fixed warning when building for 64-bit Windows
---
SDL_ttf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index fbd7eab..404e00b 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -3379,7 +3379,7 @@ static int TTF_Size_Internal(TTF_Font *font,
* isn't an easy way around that without using hb_buffer
* at that level instead.
*/
- *count = SDL_utf8strlen(text);
+ *count = (int)SDL_utf8strlen(text);
} else
#endif
*count = char_count;