summaryrefslogtreecommitdiff
path: root/lib/modular_arithmetic.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modular_arithmetic.py')
-rw-r--r--lib/modular_arithmetic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/modular_arithmetic.py b/lib/modular_arithmetic.py
index c5ed1aa..0a3eaab 100644
--- a/lib/modular_arithmetic.py
+++ b/lib/modular_arithmetic.py
@@ -66,7 +66,8 @@ class Mod:
return self # The unary plus operator does nothing.
def __abs__(self):
- return self # The value is always kept non-negative, so the abs function should do nothing.
+ # The value is always kept non-negative, so the abs function should do nothing.
+ return self
# Helper functions to build common operands based on a template.