Browse Source

fix a regression from 3 commits and 12 days ago :/

Thanks Antonio D'Souza for reporting issue #51, which this fixes.
main
Kartik K. Agaram 6 months ago
parent
commit
7ab55b3494
  1. 7
      517random.mu
  2. 7
      apps/tile.mu

7
517random.mu

@ -9,3 +9,10 @@ fn next-random prev: int -> _/edi: int {
next <- remainder next, m
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
}

7
apps/tile.mu

@ -308,10 +308,3 @@ fn render-tile-without-margin screen: (addr screen), _tile: (addr tile), start-x
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…
Cancel
Save