From 590c814bbe245ac03acef49675148f7f9ee6f406 Mon Sep 17 00:00:00 2001 From: Jakub Szuppe Date: Mon, 11 Feb 2019 09:13:06 +0100 Subject: [PATCH] Fix: unsigned long is not fundamental type on Win64 On Windows 64 unsigned long has 4 bytes like unsigned int, but it does not seem to be a simple alias for unsigned int. Because of that unsigned long is not OpenCL fundamental type. --- test/test_kernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_kernel.cpp b/test/test_kernel.cpp index da84b277a..2ab13b8a2 100644 --- a/test/test_kernel.cpp +++ b/test/test_kernel.cpp @@ -121,8 +121,8 @@ BOOST_AUTO_TEST_CASE(kernel_set_args_mac) "__kernel void test(unsigned int a, unsigned long b) { }", "test", context ); - unsigned int a; - unsigned long b; + compute::uint_ a; + compute::ulong_ b; k.set_arg(0, a); k.set_arg(1, b);