1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix more test-all failures

This commit is contained in:
Delyan Angelov 2022-04-15 21:02:03 +03:00
parent bb2a324d61
commit e802e0b9cb
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
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'