From c709b3bf6e729a6dab83d85d1a1d8189c3fc6269 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Wed, 4 Aug 2021 17:53:55 +0200 Subject: [PATCH] Remove ptr arithmetic --- hello_poly_fun/hello_poly_fun.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hello_poly_fun/hello_poly_fun.c b/hello_poly_fun/hello_poly_fun.c index 266ea8f..2724249 100644 --- a/hello_poly_fun/hello_poly_fun.c +++ b/hello_poly_fun/hello_poly_fun.c @@ -240,7 +240,7 @@ int main(void) &polyS.depth, &polyS.flag ); - addPrim(ot[db]+polyS.otz, polyS.poly_f4); + addPrim(ot[db][polyS.otz], polyS.poly_f4); nextpri += sizeof(POLY_F4); ///// Yellow poly1S.poly_f4 = (POLY_F4 *)nextpri; @@ -258,7 +258,7 @@ int main(void) &poly1S.depth, &poly1S.flag ); - addPrim(ot[db]+poly1S.otz, poly1S.poly_f4); + addPrim(ot[db][poly1S.otz], poly1S.poly_f4); nextpri += sizeof(POLY_F4); ///// Green poly2S.poly_f4 = (POLY_F4 *)nextpri; @@ -276,7 +276,7 @@ int main(void) &poly2S.depth, &poly2S.flag ); - addPrim(ot[db]+poly2S.otz, poly2S.poly_f4); + addPrim(ot[db][poly2S.otz], poly2S.poly_f4); nextpri += sizeof(POLY_F4); ///// Blue poly3S.poly_f4 = (POLY_F4 *)nextpri; @@ -294,7 +294,7 @@ int main(void) &poly3S.depth, &poly3S.flag ); - addPrim(ot[db]+poly3S.otz, poly3S.poly_f4); + addPrim(ot[db][poly3S.otz], poly3S.poly_f4); nextpri += sizeof(POLY_F4); // Pad stuff int pad = PadRead(0); // init pad