x64: fix off by one error in for loops
parent
39bc38233a
commit
431568faad
|
@ -8,7 +8,7 @@ fn main() {
|
|||
println('Hello world from V x64 machine code generator!')
|
||||
}
|
||||
println('Hello again!')
|
||||
test_fn()
|
||||
println('dne')
|
||||
//test_fn()
|
||||
println('done')
|
||||
}
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ pub fn (g mut Gen) gen_loop_start(from int) int {
|
|||
|
||||
pub fn (g mut Gen) gen_loop_end(to int, label int) {
|
||||
g.cmp(.r12, ._8, to)
|
||||
g.jle(label)
|
||||
g.jl(label)
|
||||
}
|
||||
|
||||
pub fn (g mut Gen) save_main_fn_addr() {
|
||||
|
|
Loading…
Reference in New Issue