1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix the build

This commit is contained in:
Alexander Medvednikov
2019-11-11 06:06:49 +03:00
parent 0ad0a61db2
commit 8947717e3e
3 changed files with 9 additions and 4 deletions

View File

@ -106,7 +106,7 @@ fn (g mut CGen) save() {
}
// returns expression's type, and entire expression's string representation
// returns expression's type, and entire expression's string representation)
fn (p mut Parser) tmp_expr() (string, string) {
// former start_tmp()
if p.cgen.is_tmp {
@ -117,7 +117,7 @@ fn (p mut Parser) tmp_expr() (string, string) {
p.cgen.is_tmp = true
//
typ := p.bool_expression()
// former end_tmp()
res := p.cgen.tmp_line
if p.cgen.prev_tmps.len > 0 {
p.cgen.tmp_line = p.cgen.prev_tmps.last()