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:
parent
bb2a324d61
commit
e802e0b9cb
@ -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
Block a user