From b8dff9481aaae13be2c2969aa59848db64fed30d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 1 May 2016 02:13:07 +0100 Subject: [PATCH] Implement rough versions of mod, remainder, copy_sign --- gb_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb_math.h b/gb_math.h index 41e17b8..c8f4f02 100644 --- a/gb_math.h +++ b/gb_math.h @@ -796,7 +796,7 @@ gb_mod(float x, float y) { float result; y = gb_abs(y); - result = gb_remainder(gb_abs(x), (y = gb_abs(y))); + result = gb_remainder(gb_abs(x), y); if (gb_sign(result)) result += y; return gb_copy_sign(result, x); }