From 9cf439488a90914a13af1d6e0714f840f3234873 Mon Sep 17 00:00:00 2001 From: Jaroslaw Warchulski Date: Thu, 3 Oct 2024 11:58:28 +0200 Subject: [PATCH] Fix printing in test_api_min_max (#2102) before: Filling constant buffer with 553805440 cl_ints (-2079745536 bytes). after: Filling constant buffer with 553805440 cl_ints (2215221760 bytes). --- test_conformance/api/test_api_min_max.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/api/test_api_min_max.cpp b/test_conformance/api/test_api_min_max.cpp index f92f224ffc..eb119006a4 100644 --- a/test_conformance/api/test_api_min_max.cpp +++ b/test_conformance/api/test_api_min_max.cpp @@ -1626,8 +1626,8 @@ int test_min_max_constant_buffer_size(cl_device_id deviceID, cl_context context, /* Test running the kernel and verifying it */ threads[0] = numberOfInts; localThreads[0] = 1; - log_info("Filling constant buffer with %d cl_ints (%d bytes).\n", - (int)threads[0], (int)(threads[0] * sizeof(cl_int))); + log_info("Filling constant buffer with %zu cl_ints (%zu bytes).\n", + threads[0], threads[0] * sizeof(cl_int)); error = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, threads, localThreads, 0, NULL, &event);