Changeset 779:ef7fe998f9b3
- Timestamp:
- 11/22/08 12:38:13
(2 months ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Fix return type of OrOr? and AndAndExp? being set incorrectly if rhs is void. Thanks wilsonk!
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r723 |
r779 |
|
| 8594 | 8594 | |
|---|
| 8595 | 8595 | type = Type::tboolean; |
|---|
| 8596 | | if (e1->type->ty == Tvoid) |
|---|
| | 8596 | if (e2->type->ty == Tvoid) |
|---|
| 8597 | 8597 | type = Type::tvoid; |
|---|
| 8598 | 8598 | if (e2->op == TOKtype || e2->op == TOKimport) |
|---|
| … | … | |
| 8659 | 8659 | |
|---|
| 8660 | 8660 | type = Type::tboolean; |
|---|
| 8661 | | if (e1->type->ty == Tvoid) |
|---|
| | 8661 | if (e2->type->ty == Tvoid) |
|---|
| 8662 | 8662 | type = Type::tvoid; |
|---|
| 8663 | 8663 | if (e2->op == TOKtype || e2->op == TOKimport) |
|---|