From f3baaa0fb8fc9c98dd71dd85fb1546bd849999bb Mon Sep 17 00:00:00 2001 From: Mike <45243121+tankf33der@users.noreply.github.com> Date: Sat, 10 May 2025 20:55:15 +0300 Subject: [PATCH] slow_tests: fix asm_test.amd64.v (#24451) --- vlib/v/slow_tests/assembly/asm_test.amd64.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/v/slow_tests/assembly/asm_test.amd64.v b/vlib/v/slow_tests/assembly/asm_test.amd64.v index 748984ef70..e87024de9e 100644 --- a/vlib/v/slow_tests/assembly/asm_test.amd64.v +++ b/vlib/v/slow_tests/assembly/asm_test.amd64.v @@ -100,7 +100,7 @@ fn test_inline_asm() { assert util.add(8, 9, 34, 7) == 58 // test .amd64.v imported files - mut o := Manu{} + mut o := &Manu{} asm amd64 { mov eax, 0 cpuid @@ -108,7 +108,7 @@ fn test_inline_asm() { =d (o.edx) as edx0 =c (o.ecx) as ecx0 } - o.str() + assert o.str()[0].is_capital() } @[packed] @@ -120,11 +120,11 @@ mut: zero u8 // for string } -fn (m Manu) str() string { +fn (m &Manu) str() string { return unsafe { string{ - str: &u8(&m) - len: 24 + str: m + len: 12 is_lit: 1 } }