aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-08 16:09:35 +0100
committergingerBill <bill@gingerbill.org>2020-05-08 16:09:35 +0100
commitd52695b077a2f9faeda17e770f0110302652c36f (patch)
treedc142c43d8543b28d288e7dc8fe859015983649c /src/exact_value.cpp
parent4fc60601d3530df1d05500b2416c60029ef29f08 (diff)
Fix constant complex arithmetic bug
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index 2e33d1786..edaf27217 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -651,6 +651,8 @@ void match_exact_values(ExactValue *x, ExactValue *y) {
case ExactValue_Complex:
switch (y->kind) {
+ case ExactValue_Complex:
+ return;
case ExactValue_Quaternion:
*x = exact_value_to_quaternion(*x);
return;