From: Wolfgang Bumiller Date: Tue, 12 Nov 2013 15:05:54 +0000 (+0100) Subject: vec3_not: be consistent with compile-time behavior here X-Git-Tag: xonotic-v0.8.0~96 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d5229ee8ca9a72d161c34938a845c53f1ef4289;p=xonotic%2Fgmqcc.git vec3_not: be consistent with compile-time behavior here --- 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; }