From 9f401b35b882c20a6c1974d6cbb8b4696eeaecbc Mon Sep 17 00:00:00 2001 From: Milang Date: Fri, 16 Aug 2019 16:23:46 +0200 Subject: [PATCH] oops int32_t, not uint32_t >_< --- src/FxEngine/coord.c | 4 ++-- src/FxEngine/coord.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FxEngine/coord.c b/src/FxEngine/coord.c index aaf4418..9d0e86b 100644 --- a/src/FxEngine/coord.c +++ b/src/FxEngine/coord.c @@ -5,13 +5,13 @@ const double FE_2_PI = FE_PI * 2; const double FE_PI_SUR_2 = FE_PI / 2; -static const uint32_t precision=15; // précision (nombre obligatoirement impair) choisie de façon arbitraire +static const int32_t precision=15; // précision (nombre obligatoirement impair) choisie de façon arbitraire static double reducted_cos(const double a) { double u= 1.0; const double a2 = a * a; - for(uint32_t p = precision; p>=1; p -= 2) + for(int32_t p = precision; p>=1; p -= 2) u = 1 - a2 / (p * p + p) * u; return u; } diff --git a/src/FxEngine/coord.h b/src/FxEngine/coord.h index 3bb4848..3d746c1 100644 --- a/src/FxEngine/coord.h +++ b/src/FxEngine/coord.h @@ -7,7 +7,7 @@ notion de point dans l'espace simple */ typedef struct FE_position FE_position; struct FE_position -{uint32_t x,y,z;}; +{int32_t x,y,z;}; /* FE_point: notion de point dans l'espace destiné à etre utilisé dans l'affichage