Changeset cc077f4 for src/ControlStruct/TranslateEnumRange.cpp
- Timestamp:
- Aug 5, 2024, 9:31:08 AM (5 weeks ago)
- Branches:
- master
- Children:
- f6d2e9b
- Parents:
- c588acb (diff), 7db4fcd4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/TranslateEnumRange.cpp
rc588acb rcc077f4 51 51 // it wraps around and become unsigned max 52 52 ast::UntypedExpr * condition = ast::UntypedExpr::createCall( location, 53 "?<=?",53 stmt->is_inc? "?<=?": "?>=?", 54 54 { new ast::NameExpr( location, indexName ), 55 ast::UntypedExpr::createCall( location, "upperBound", {} ) }); 55 stmt->is_inc? 56 ast::UntypedExpr::createCall( location, "upperBound", {} ): 57 ast::UntypedExpr::createCall( location, "lowerBound", {} ) 58 }); 56 59 auto increment = ast::UntypedExpr::createCall( location, 57 60 stmt->is_inc? "succ_unsafe": "pred_unsafe",
Note: See TracChangeset
for help on using the changeset viewer.