diff options
Diffstat (limited to 'std/math.cup')
| -rw-r--r-- | std/math.cup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/math.cup b/std/math.cup index 9ac935c..d58aa86 100644 --- a/std/math.cup +++ b/std/math.cup @@ -7,7 +7,7 @@ fn max(a: int, b: int): int { } fn sign(a: int): int { - return a > 0 ? 1 : a < 0 ? -1 : 0; + return a > 0 ? 1 : a == 0 ? 0 : -1; } fn abs(a: int): int { |