diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-01 21:34:59 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-01 21:34:59 +0100 |
| commit | 0718f14774c152b84edb747c03ca53b9400407b9 (patch) | |
| tree | af1c16de9e6aa15bd023cb9d0ac3290c0cc229e8 /src/check_stmt.cpp | |
| parent | a6fe656f21863d578c1c408f158ed5bc567a8f23 (diff) | |
Reduce number of range and slice operators #239
Replace .. and ... with : and ..
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 453127f0c..4a98db600 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -715,8 +715,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { continue; } switch (ie->op.kind) { - case Token_Ellipsis: op = Token_GtEq; break; - case Token_HalfClosed: op = Token_Gt; break; + case Token_Ellipsis: op = Token_GtEq; break; default: error(ie->op, "Invalid interval operator"); continue; } @@ -726,8 +725,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { } switch (ie->op.kind) { - case Token_Ellipsis: op = Token_LtEq; break; - case Token_HalfClosed: op = Token_Lt; break; + case Token_Ellipsis: op = Token_LtEq; break; default: error(ie->op, "Invalid interval operator"); continue; } @@ -1362,8 +1360,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { TokenKind op = Token_Lt; switch (ie->op.kind) { - case Token_Ellipsis: op = Token_LtEq; break; - case Token_HalfClosed: op = Token_Lt; break; + case Token_Ellipsis: op = Token_LtEq; break; default: error(ie->op, "Invalid range operator"); break; } bool ok = compare_exact_values(op, a, b); |