From 9e704b60b12f850193895f07017237bfd409aab8 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 10 May 2023 08:58:25 +0930 Subject: [PATCH] Make CP_DEVICE_TYPE_ALL constant long to avoid sign extension. --- src/notzed.zcl/classes/au/notzed/zcl/CL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5