ci: fix more test-all failures
parent
bb2a324d61
commit
e802e0b9cb
|
@ -22,7 +22,7 @@ fn mm_alloc(size u64) (&byte, Errno) {
|
||||||
return &u8(0), e
|
return &u8(0), e
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mm_free(addr &byte) Errno {
|
fn mm_free(addr &u8) Errno {
|
||||||
unsafe {
|
unsafe {
|
||||||
ap := &u64(addr - sizeof(u64))
|
ap := &u64(addr - sizeof(u64))
|
||||||
size := *ap
|
size := *ap
|
||||||
|
|
|
@ -138,7 +138,7 @@ fn myfn4() i8 {
|
||||||
fn test_typeof_on_fn() {
|
fn test_typeof_on_fn() {
|
||||||
assert typeof(myfn) == 'fn (int) int'
|
assert typeof(myfn) == 'fn (int) int'
|
||||||
assert typeof(myfn2) == 'fn ()'
|
assert typeof(myfn2) == 'fn ()'
|
||||||
assert typeof(myfn3) == 'fn (int, string) byte'
|
assert typeof(myfn3) == 'fn (int, string) u8'
|
||||||
assert typeof(myfn4) == 'fn () i8'
|
assert typeof(myfn4) == 'fn () i8'
|
||||||
assert typeof(myfn).name == typeof(myfn)
|
assert typeof(myfn).name == typeof(myfn)
|
||||||
assert typeof(&myfn).name == '&fn (int) int'
|
assert typeof(&myfn).name == '&fn (int) int'
|
||||||
|
|
Loading…
Reference in New Issue