From c3f337bc5093d1bc18244aff1a138904a770d45f Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Tue, 20 Jun 2023 15:55:29 +0200 Subject: [PATCH] Corrected invalid initialization of reference buffer --- test_conformance/basic/test_vloadstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/basic/test_vloadstore.cpp b/test_conformance/basic/test_vloadstore.cpp index e4a36b776d..d34ecbf906 100644 --- a/test_conformance/basic/test_vloadstore.cpp +++ b/test_conformance/basic/test_vloadstore.cpp @@ -225,7 +225,7 @@ int test_vload(cl_device_id device, cl_context context, cl_command_queue queue, test_error( error, "Unable to read results" ); // Create the reference results - referenceBuffer.assign(0, numLoads * typeSize * vecSize); + referenceBuffer.assign(numLoads * typeSize * vecSize, 0); for( i = 0; i < numLoads; i++ ) { memcpy(&referenceBuffer[i * typeSize * vecSize],