From 14a8d4ae3c246ec2c6fcdc20f99c80375e5f78a8 Mon Sep 17 00:00:00 2001 From: unknown-v <52547845+unknown-v@users.noreply.github.com> Date: Fri, 27 Sep 2019 17:55:30 +0200 Subject: [PATCH] =?UTF-8?q?parser:=20replace=20"=E2=89=A0"=20with=20"!=3D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiler/parser.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/parser.v b/compiler/parser.v index fdd6b98b90..886c0b3a85 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -1200,7 +1200,7 @@ fn (p mut Parser) close_scope() { mut i := p.var_idx - 1 for ; i >= 0; i-- { v := p.local_vars[i] - if v.scope_level ≠ p.cur_fn.scope_level { + if v.scope_level != p.cur_fn.scope_level { break } // Clean up memory, only do this if -autofree was passed for now @@ -2209,7 +2209,7 @@ fn (p mut Parser) index_expr(typ_ string, fn_ph int) string { p.assigned_type = typ p.expected_type = typ assign_pos := p.cgen.cur_line.len - is_cao := p.tok ≠ .assign + is_cao := p.tok != .assign p.assign_statement(v, fn_ph, is_indexer && (is_map || is_arr)) // `m[key] = val` if is_indexer && (is_map || is_arr) {