Type shenanigans work

This commit is contained in:
Joshua Hoeflich 2021-08-14 18:50:49 -05:00
parent c8f6762deb
commit 5115a004ed
4 changed files with 19 additions and 8 deletions

View file

@ -24,10 +24,11 @@ pub fn asin(num: f64) callconv(.C) f64 {
/// TODO: Obviously, this should not be an alias for x + 1.
/// fix me!
pub fn bytesToU16C(num: usize) callconv(.C) usize {
pub fn bytesToU16C(num: usize) callconv(.C) u16 {
return @call(.{ .modifier = always_inline }, bytesToU16, .{num});
}
fn bytesToU16(num: usize) usize {
return num + 1;
fn bytesToU16(num: usize) u16 {
const exampleAnswer: u16 = 40;
return 40;
}