Changeset 90e683b for src/ResolvExpr/CommonType.cpp
- Timestamp:
- Feb 3, 2025, 11:46:55 AM (12 months ago)
- Branches:
- master
- Children:
- 54f70c6
- Parents:
- bbbff10
- File:
-
- 1 edited
-
src/ResolvExpr/CommonType.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CommonType.cpp
rbbbff10 r90e683b 386 386 } else if ( const ast::EnumInstType * enumInst = dynamic_cast< const ast::EnumInstType * >( type2 ) ) { 387 387 const ast::EnumDecl* enumDecl = enumInst->base; 388 if ( !enumDecl->isCfa) {388 if ( enumDecl->is_c_enum() ) { 389 389 ast::BasicKind kind = commonTypes[ basic->kind ][ ast::BasicKind::SignedInt ]; 390 390 if ( … … 654 654 result = param; 655 655 } 656 } else if ( param->base && !param->base->isCfa) {656 } else if ( param->base && param->base->is_c_enum() ) { 657 657 auto basicType = new ast::BasicType( ast::BasicKind::UnsignedInt ); 658 658 result = commonType( basicType, type2, tenv, need, have, open, widen);
Note:
See TracChangeset
for help on using the changeset viewer.