Make CP_DEVICE_TYPE_ALL constant long to avoid sign extension. foreign-abi
authorNot Zed <notzed@gmail.com>
Tue, 9 May 2023 23:28:25 +0000 (08:58 +0930)
committerNot Zed <notzed@gmail.com>
Tue, 9 May 2023 23:28:25 +0000 (08:58 +0930)
src/notzed.zcl/classes/au/notzed/zcl/CL.java

index 816b3db..b4c073f 100644 (file)
@@ -119,7 +119,7 @@ public interface CL {
        public final static long CL_DEVICE_TYPE_GPU = (1 << 2);
        public final static long CL_DEVICE_TYPE_ACCELERATOR = (1 << 3);
        public final static long CL_DEVICE_TYPE_CUSTOM = (1 << 4);
-       public final static long CL_DEVICE_TYPE_ALL = 0xFFFFFFFF;
+       public final static long CL_DEVICE_TYPE_ALL = 0xFFFFFFFFL;
 
        /* cl_device_info */
        public final static int CL_DEVICE_TYPE = 0x1000;