From 688bc74ce0ab320cdfc6e73f6db75612968f74c4 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 4 Jan 2025 19:12:08 +0100 Subject: Fix a bunch of warnings --- asl/tests/buffer_tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'asl/tests') diff --git a/asl/tests/buffer_tests.cpp b/asl/tests/buffer_tests.cpp index f3d6446..4c18461 100644 --- a/asl/tests/buffer_tests.cpp +++ b/asl/tests/buffer_tests.cpp @@ -364,8 +364,8 @@ ASL_TEST(move_assign_from_heap) ASL_TEST(move_assign_trivial_heap_to_inline) { isize_t alloc_count = 0; - asl::buffer buf{CounterAllocator(&alloc_count)}; - asl::buffer buf2{CounterAllocator(&alloc_count)}; + asl::buffer buf{CounterAllocator{&alloc_count}}; + asl::buffer buf2{CounterAllocator{&alloc_count}}; buf.push(1); buf.push(2); @@ -389,8 +389,8 @@ ASL_TEST(move_assign_trivial_heap_to_inline) ASL_TEST(move_assign_trivial_inline_to_heap) { isize_t alloc_count = 0; - asl::buffer buf{CounterAllocator(&alloc_count)}; - asl::buffer buf2{CounterAllocator(&alloc_count)}; + asl::buffer buf{CounterAllocator{&alloc_count}}; + asl::buffer buf2{CounterAllocator{&alloc_count}}; buf.push(1); buf.push(2); -- cgit