From 1d5229ee8ca9a72d161c34938a845c53f1ef4289 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 12 Nov 2013 16:05:54 +0100 Subject: [PATCH] vec3_not: be consistent with compile-time behavior here --- fold.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fold.c b/fold.c index eb7e8e6..7c2f66c 100644 --- a/fold.c +++ b/fold.c @@ -123,9 +123,9 @@ static GMQCC_INLINE vec3_t vec3_xorvf(vec3_t a, qcfloat_t b) { static GMQCC_INLINE vec3_t vec3_not(vec3_t a) { vec3_t out; - out.x = (qcfloat_t)(~((qcint_t)a.x)); - out.y = (qcfloat_t)(~((qcint_t)a.y)); - out.z = (qcfloat_t)(~((qcint_t)a.z)); + out.x = -1-a.x; + out.y = -1-a.y; + out.z = -1-a.z; return out; } -- 2.39.2