SDL_ttf: Use uintptr_t in Create_Surface_LCD

From fea4cc3922aba1302e9d0b37f4245e91546a3192 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Mon, 9 May 2022 19:28:54 +0100
Subject: [PATCH] Use uintptr_t in Create_Surface_LCD

This catches up with commit 6095925 "replace size_t casts on pointers
with uintptr_t" in code that was written before that commit, but merged
after it. This makes all the code paths that call
SDL_CreateRGBSurfaceWithFormatFrom() consistent with each other.

Fixes: f26fa4c "Add functions to use FreeType ClearType-style LCD rendering (#138)"
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 SDL_ttf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SDL_ttf.c b/SDL_ttf.c
index e9c3f00..aac2b16 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -1615,7 +1615,7 @@ static SDL_Surface* Create_Surface_LCD(int width, int height, SDL_Color fg, SDL_
         }
 
         /* address is aligned */
-        pixels = (void *)(((size_t)ptr + sizeof(void *) + alignment) & ~alignment);
+        pixels = (void *)(((uintptr_t)ptr + sizeof(void *) + alignment) & ~alignment);
         ((void **)pixels)[-1] = ptr;
 
         textbuf = SDL_CreateRGBSurfaceWithFormatFrom(pixels, width, height, 0, pitch, SDL_PIXELFORMAT_ARGB8888);