Fix constant complex arithmetic bug
This commit is contained in:
1 parent
4fc60601d3
commit
d52695b077
1 file changed
+2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user