diff options
Diffstat (limited to 'examples/teapot.c')
| -rw-r--r-- | examples/teapot.c | 2 |
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)); } |
