summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cyclicint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cyclicint.h b/common/cyclicint.h
index 3b24399..7c06877 100644
--- a/common/cyclicint.h
+++ b/common/cyclicint.h
@@ -49,6 +49,10 @@ class CyclicInt {
return v;
}
+ CyclicInt operator-() {
+ return -value;
+ }
+
CyclicInt operator-(CyclicInt v) {
return value - v.value;
}