Skip to content
Browse files

Fix regression when compiling IEEE libraries

  • Loading branch information...
1 parent 3a15bf1 commit 00a9d765c6271e1a3867f1ce1c7ec9b89f0ab2fd @nickg committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/sem.c
View
6 src/sem.c
@@ -960,7 +960,11 @@ static bool sem_check_range(range_t *r)
}
}
- if (!(sem_check(r->left) && sem_check(r->right)))
+ type_set_push();
+ bool ok = sem_check(r->left) && sem_check(r->right);
+ type_set_pop();
+
+ if (!ok)
return false;
if (!type_eq(tree_type(r->left), tree_type(r->right)))

0 comments on commit 00a9d76

Please sign in to comment.
Something went wrong with that request. Please try again.