rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit bfab59446402cae41f1e400a390ee5514d8dfad1
parent 12a67279a06b4a5b518cda65b99afd22efa915ca
Author: vaplv <vaplv@free.fr>
Date:   Thu, 13 Oct 2016 20:34:21 +0200

Fix CL warnings

Diffstat:
Msrc/test_real22.h | 4++--
Msrc/test_real33.h | 4++--
Msrc/test_real44.h | 12++++++------
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/test_real22.h b/src/test_real22.h @@ -65,10 +65,10 @@ main(int argc, char** argv) REALXY_FUNC__(set)(c, a); FOR_EACH(i, 0, REALX_DIMENSION__*REALY_DIMENSION__) { - REAL_TYPE__ d = c[i]; + REAL_TYPE__ r = c[i]; c[i] = c[i] + REAL_EPSILON__; CHECK(REALXY_FUNC__(is_identity)(c), 0); - c[i] = d; + c[i] = r; } d[0] = (REAL_COMPATIBLE)0.1; diff --git a/src/test_real33.h b/src/test_real33.h @@ -66,10 +66,10 @@ main(int argc, char** argv) REALXY_FUNC__(set)(c, a); FOR_EACH(i, 0, REALX_DIMENSION__*REALY_DIMENSION__) { - REAL_TYPE__ d = c[i]; + REAL_TYPE__ r = c[i]; c[i] = c[i] + REAL_EPSILON__; CHECK(REALXY_FUNC__(is_identity)(c), 0); - c[i] = d; + c[i] = r; } d[0] = (REAL_COMPATIBLE)0.1; diff --git a/src/test_real44.h b/src/test_real44.h @@ -70,17 +70,17 @@ main(int argc, char** argv) 0.0, 0.0, 0.0, 1.0)); CHECK_REAL44 (a, REALXY_CTOR__(c, - 1.0, 0.0, 0.0, 0.0, - 0.0, 1.0, 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, - 0.0, 0.0, 0.0, 1.0)); + 1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, + 0.0, 0.0, 0.0, 1.0)); CHECK(REALXY_FUNC__(is_identity)(a), 1); REALXY_FUNC__(set)(c, a); FOR_EACH(i, 0, REALX_DIMENSION__*REALY_DIMENSION__) { - REAL_TYPE__ d = c[i]; + REAL_TYPE__ r = c[i]; c[i] = c[i] + REAL_EPSILON__; CHECK(REALXY_FUNC__(is_identity)(c), 0); - c[i] = d; + c[i] = r; } d[0] = (REAL_COMPATIBLE)0.1;