Skip to content

Commit 590c814

Browse files
authored
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.
1 parent a47ff93 commit 590c814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ BOOST_AUTO_TEST_CASE(kernel_set_args_mac)
121121
"__kernel void test(unsigned int a, unsigned long b) { }", "test", context
122122
);
123123

124-
unsigned int a;
125-
unsigned long b;
124+
compute::uint_ a;
125+
compute::ulong_ b;
126126

127127
k.set_arg(0, a);
128128
k.set_arg(1, b);

0 commit comments

Comments
 (0)