ci: fix more test-all failures

Delyan Angelov 2022-04-15 21:02:03 +03:00 committed by Jef Roosens
parent a9d9852b40
commit 03ff1b6919
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'