summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-21 15:22:04 +0200
committerkkard2 <[email protected]>2025-09-21 15:22:04 +0200
commit18b143abf2d4f168aa295685064a060a7fffa4aa (patch)
tree86fb8f76d2c809e6ddc8154628ed2193b71982dc
parente972fcd0eb1e3b828334983240e1dc98a2a598a9 (diff)
sth sth conversiont from (cl.exe still complains about fscanf and i'm not fixing that)
-rw-r--r--examples/teapot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/teapot.c b/examples/teapot.c
index 889b6de..026de22 100644
--- a/examples/teapot.c
+++ b/examples/teapot.c
@@ -43,7 +43,7 @@ void init() {
colors[i] = sponge_colorf_to_color32(color);
// invert winding
- int32_t t = (i / 3) * 3;
+ int32_t t = (int32_t)((i / 3) * 3);
triangles[i] = t + (2 - (i % 3));
}