Skip to content

Commit

Permalink
Fix: unsigned long is not fundamental type on Win64
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jszuppe committed Feb 11, 2019
1 parent a47ff93 commit 590c814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 590c814

Please sign in to comment.