Skip to content

Commit

Permalink
fix the floor() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Nov 15, 2009
1 parent 87fea1c commit e7e880d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/builtins/floor.pir
Expand Up @@ -6,8 +6,7 @@
.param pmc matrix
.const "Sub" helper = "!_floor_helper"

$P0 = clone matrix
$P0.'iterate_function_inplace'(helper)
$P0 = matrix.'iterate_function_external'(helper)
.return($P0)
.end

Expand All @@ -16,7 +15,6 @@
.param num value
.param int x
.param int y
$N0 = matrix
$I0 = floor $N0
$I0 = floor value
.return($I0)
.end

0 comments on commit e7e880d

Please sign in to comment.