mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Switch from floats to usize
This commit is contained in:
parent
d976f2fc93
commit
c8f6762deb
4 changed files with 8 additions and 8 deletions
|
@ -22,12 +22,12 @@ pub fn asin(num: f64) callconv(.C) f64 {
|
|||
return @call(.{ .modifier = always_inline }, math.asin, .{num});
|
||||
}
|
||||
|
||||
/// TODO: Obviously, this should not be an alias for arcsin(x);
|
||||
/// TODO: Obviously, this should not be an alias for x + 1.
|
||||
/// fix me!
|
||||
pub fn bytesToU16C(num: f64) callconv(.C) f64 {
|
||||
pub fn bytesToU16C(num: usize) callconv(.C) usize {
|
||||
return @call(.{ .modifier = always_inline }, bytesToU16, .{num});
|
||||
}
|
||||
|
||||
fn bytesToU16(num: f64) f64 {
|
||||
fn bytesToU16(num: usize) usize {
|
||||
return num + 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue