From e18c45ea71b2f4934378de1bdfdc19de282003b3 Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Sun, 19 Jan 2025 10:57:53 -0500 Subject: [PATCH] SM64: Add missing typecasts from Gfx* to SetTileSize* to suppress compiler warnings (#492) --- fast64_internal/sm64/c_templates/tile_scroll.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fast64_internal/sm64/c_templates/tile_scroll.py b/fast64_internal/sm64/c_templates/tile_scroll.py index 6fa1adb..d85c585 100644 --- a/fast64_internal/sm64/c_templates/tile_scroll.py +++ b/fast64_internal/sm64/c_templates/tile_scroll.py @@ -13,28 +13,28 @@ tile_scroll_c = """#include */ void shift_s(Gfx *dl, u32 cmd, u16 s) { - SetTileSize *tile = dl; + SetTileSize *tile = (SetTileSize *) dl; tile += cmd; tile->s += s; tile->u += s; } void shift_t(Gfx *dl, u32 cmd, u16 t) { - SetTileSize *tile = dl; + SetTileSize *tile = (SetTileSize *) dl; tile += cmd; tile->t += t; tile->v += t; } void shift_s_down(Gfx *dl, u32 cmd, u16 s) { - SetTileSize *tile = dl; + SetTileSize *tile = (SetTileSize *) dl; tile += cmd; tile->s -= s; tile->u += s; } void shift_t_down(Gfx *dl, u32 cmd, u16 t) { - SetTileSize *tile = dl; + SetTileSize *tile = (SetTileSize *) dl; tile += cmd; tile->t -= t; tile->v += t;