From: Not Zed Date: Tue, 9 May 2023 23:28:25 +0000 (+0930) Subject: Make CP_DEVICE_TYPE_ALL constant long to avoid sign extension. X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=refs%2Fheads%2Fforeign-abi;p=zcl Make CP_DEVICE_TYPE_ALL constant long to avoid sign extension. --- diff --git a/src/notzed.zcl/classes/au/notzed/zcl/CL.java b/src/notzed.zcl/classes/au/notzed/zcl/CL.java index 816b3db..b4c073f 100644 --- a/src/notzed.zcl/classes/au/notzed/zcl/CL.java +++ b/src/notzed.zcl/classes/au/notzed/zcl/CL.java @@ -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;