From 6f4d96c278b5706afdc24edad31c315916745753 Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 8 Nov 2009 17:48:03 +0000 Subject: [PATCH] fix warning git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8249 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/common/mathlib.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/common/mathlib.qc b/data/qcsrc/common/mathlib.qc index 5f45da009..65e53fb1c 100644 --- a/data/qcsrc/common/mathlib.qc +++ b/data/qcsrc/common/mathlib.qc @@ -180,7 +180,7 @@ vector lgamma(float x) { // TODO improve accuracy if(!isfinite(x)) - return fabs(x); + return fabs(x) * '1 0 0' + copysign(1, x) * '0 1 0'; if(x < 1 && x == floor(x)) return nan("gamma") * '1 1 1'; if(x < 0.1) -- 2.39.2