fix a regression from 3 commits and 12 days ago :/
Thanks Antonio D'Souza for reporting issue #51, which this fixes.
This commit is contained in:
parent
5bbc33d823
commit
7ab55b3494
|
@ -9,3 +9,10 @@ fn next-random prev: int -> _/edi: int {
|
||||||
next <- remainder next, m
|
next <- remainder next, m
|
||||||
return next
|
return next
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn remainder a: int, b: int -> _/eax: int {
|
||||||
|
var q/eax: int <- copy 0
|
||||||
|
var r/edx: int <- copy 0
|
||||||
|
q, r <- integer-divide a, b
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
|
@ -308,10 +308,3 @@ fn render-tile-without-margin screen: (addr screen), _tile: (addr tile), start-x
|
||||||
loop
|
loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn remainder a: int, b: int -> _/eax: int {
|
|
||||||
var q/eax: int <- copy 0
|
|
||||||
var r/edx: int <- copy 0
|
|
||||||
q, r <- integer-divide a, b
|
|
||||||
return r
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue