From 63a1c32a17c89045888a32d75c6596457818bdd8 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 5 Apr 2021 08:25:08 +0300 Subject: [PATCH] ci: fix ptr_arithmetic_test.v --- vlib/v/tests/ptr_arithmetic_test.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/tests/ptr_arithmetic_test.v b/vlib/v/tests/ptr_arithmetic_test.v index 2a2e42b4d8..462235b614 100644 --- a/vlib/v/tests/ptr_arithmetic_test.v +++ b/vlib/v/tests/ptr_arithmetic_test.v @@ -20,20 +20,20 @@ fn test_ptr_arithmetic() { fn test_ptr_arithmetic_over_byteptr() { // byteptr, voidptr, charptr are handled differently - mut q := byteptr(10) + mut q := &byte(10) unsafe { q -= 2 q = q + 1 } - assert q == byteptr(9) + assert u64(q) == u64(&byte(9)) s := unsafe { q - 1 } - assert s == byteptr(8) + assert u64(s) == u64(&byte(8)) unsafe { q++ q++ q-- } - assert q == byteptr(10) + assert u64(q) == u64(&byte(10)) } struct Abc {