summaryrefslogtreecommitdiff
path: root/lib/modular_arithmetic.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-04 13:32:36 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-04 13:32:36 +0100
commit9bf7d10f3310147c7e85330a79da655b9f7a5bad (patch)
tree00283ccf137cd3a87e1d5d08869717a8ffddd4cc /lib/modular_arithmetic.py
parentf33c69dcaf24ecc7e039dec83a4a5c74908da52f (diff)
PTA State/Transition: Use ModelFunction instead of PTAAttribute
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.