Browse Source

Fix constant complex arithmetic bug

gingerBill 5 years ago
parent
commit
d52695b077
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/exact_value.cpp

+ 2 - 0
src/exact_value.cpp

@@ -651,6 +651,8 @@ void match_exact_values(ExactValue *x, ExactValue *y) {
 
 
 	case ExactValue_Complex:
 	case ExactValue_Complex:
 		switch (y->kind) {
 		switch (y->kind) {
+		case ExactValue_Complex:
+			return;
 		case ExactValue_Quaternion:
 		case ExactValue_Quaternion:
 			*x = exact_value_to_quaternion(*x);
 			*x = exact_value_to_quaternion(*x);
 			return;
 			return;