Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 779:ef7fe998f9b3

Show
Ignore:
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
  • dmd/expression.c

    r723 r779  
    85948594 
    85958595    type = Type::tboolean; 
    8596     if (e1->type->ty == Tvoid) 
     8596    if (e2->type->ty == Tvoid) 
    85978597    type = Type::tvoid; 
    85988598    if (e2->op == TOKtype || e2->op == TOKimport) 
     
    86598659 
    86608660    type = Type::tboolean; 
    8661     if (e1->type->ty == Tvoid) 
     8661    if (e2->type->ty == Tvoid) 
    86628662    type = Type::tvoid; 
    86638663    if (e2->op == TOKtype || e2->op == TOKimport) 
Copyright © 2008, LDC Development Team.