From 03ff1b6919c3b61e2c02c43513b98e10d2ef318e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 15 Apr 2022 21:02:03 +0300 Subject: [PATCH] ci: fix more test-all failures --- vlib/builtin/linux_bare/memory_managment.v | 2 +- vlib/v/tests/typeof_test.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/linux_bare/memory_managment.v b/vlib/builtin/linux_bare/memory_managment.v index a21eebcd14..9da707e0a3 100644 --- a/vlib/builtin/linux_bare/memory_managment.v +++ b/vlib/builtin/linux_bare/memory_managment.v @@ -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 diff --git a/vlib/v/tests/typeof_test.v b/vlib/v/tests/typeof_test.v index c0d1012921..d0a9586e0b 100644 --- a/vlib/v/tests/typeof_test.v +++ b/vlib/v/tests/typeof_test.v @@ -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'