From 0718f14774c152b84edb747c03ca53b9400407b9 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 1 Aug 2018 21:34:59 +0100 Subject: Reduce number of range and slice operators #239 Replace .. and ... with : and .. --- src/check_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_type.cpp') 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; } -- cgit v1.2.3