Implicit conversion of round numbers to integers (#4542)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
fn cond = (bools) => {
|
||||
return (a, b) => {
|
||||
x = int(min(max(-1, a-b), 1) + 1)
|
||||
x = min(max(-1, a-b), 1) + 1
|
||||
return bools[x]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user