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