compiler: fix mistake in comptime.v (#2425)

* merge master
* fix mistake in comptime.v
pull/2428/head
joe-conigliaro 2019-10-19 19:40:01 +11:00 committed by GitHub
parent b51b8858d6
commit c24d94f87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ fn (p mut Parser) chash() {
// println('chsh() file=$p.file hash="$hash"')
p.next()
if hash.starts_with('flag ') {
p.first_pass() {
if p.first_pass() {
mut flag := hash.right(5)
// expand `@VROOT` `@VMOD` to absolute path
flag = flag.replace('@VROOT', p.vroot)