mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 10:44:09 +02:00
more literal type casting
This commit is contained in:
parent
42f3a76e07
commit
938558c87a
2 changed files with 66 additions and 3 deletions
|
|
@ -12,8 +12,8 @@ fn hello_world() {
|
|||
}
|
||||
|
||||
#[ivory_export]
|
||||
fn add1(input: i64) -> i64 {
|
||||
input + 1
|
||||
fn is_positive(input: i64) -> bool {
|
||||
input >= 0
|
||||
}
|
||||
|
||||
#[ivory_export]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue