aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-01 21:34:59 +0100
committergingerBill <bill@gingerbill.org>2018-08-01 21:34:59 +0100
commit0718f14774c152b84edb747c03ca53b9400407b9 (patch)
treeaf1c16de9e6aa15bd023cb9d0ac3290c0cc229e8 /src/check_type.cpp
parenta6fe656f21863d578c1c408f158ed5bc567a8f23 (diff)
Reduce number of range and slice operators #239
Replace .. and ... with : and ..
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 77b370619..9d840b0d1 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1548,7 +1548,7 @@ i64 check_array_count(CheckerContext *ctx, Operand *o, Ast *e) {
return 0;
}
if (e->kind == Ast_UnaryExpr &&
- e->UnaryExpr.op.kind == Token_Ellipsis) {
+ e->UnaryExpr.op.kind == Token_Question) {
return -1;
}