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

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

* merge master
* fix mistake in comptime.v
This commit is contained in:
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

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)