From 25ef0ee59354258a14b947a63c481a8385d78069 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 11 Oct 2019 03:00:06 +0300 Subject: [PATCH] parser: remove an unnecessary line --- compiler/parser.v | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/parser.v b/compiler/parser.v index 1fbc4bceee..f813ec486f 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -3913,7 +3913,6 @@ fn (p mut Parser) return_st() { tmp := p.get_tmp() ret := p.cgen.cur_line.right(ph) typ := expr_type.replace('Option_', '') - p.cgen.cur_line = '$expr_type $tmp = OPTION_CAST($typ)($ret);' p.cgen.resetln('$expr_type $tmp = OPTION_CAST($expr_type)($ret);') p.gen('return opt_ok(&$tmp, sizeof($typ))') }