diff options
| author | 2016-05-01 02:13:07 +0100 | |
|---|---|---|
| committer | 2016-05-01 02:13:07 +0100 | |
| commit | b8dff9481aaae13be2c2969aa59848db64fed30d (patch) | |
| tree | c263857fa132244608ca4dde2773da51aa47bca6 /gb_math.h | |
| parent | Implement 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
