aboutsummaryrefslogtreecommitdiffstats
path: root/gb_math.h
diff options
context:
space:
mode:
authorGravatar gingerBill 2016-05-01 02:13:07 +0100
committerGravatar gingerBill 2016-05-01 02:13:07 +0100
commitb8dff9481aaae13be2c2969aa59848db64fed30d (patch)
treec263857fa132244608ca4dde2773da51aa47bca6 /gb_math.h
parentImplement rough versions of mod, remainder, copy_sign (diff)
Implement rough versions of mod, remainder, copy_sign
Diffstat (limited to 'gb_math.h')
-rw-r--r--gb_math.h2
1 files changed, 1 insertions, 1 deletions
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);
}