From f2ec595d8a0dae4f75814b055a2868b8e3523741 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Wed, 5 Oct 2022 18:11:53 -0400 Subject: [PATCH] Fix typo in last commit --- src/java/org/lwjgl/opencl/CL.java | 2 +- src/java/org/lwjgl/opengl/GLContext.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/opencl/CL.java b/src/java/org/lwjgl/opencl/CL.java index 81070f8d..f000032d 100644 --- a/src/java/org/lwjgl/opencl/CL.java +++ b/src/java/org/lwjgl/opencl/CL.java @@ -148,7 +148,7 @@ public final class CL { static long getFunctionAddress(String name) { ByteBuffer buffer = MemoryUtil.encodeASCII(name); long address = ngetFunctionAddress(MemoryUtil.getAddress(buffer)); - if (address == null) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name); + if (address == 0L) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name); return address; } private static native long ngetFunctionAddress(long name); diff --git a/src/java/org/lwjgl/opengl/GLContext.java b/src/java/org/lwjgl/opengl/GLContext.java index 03b45cca..61fd49d6 100644 --- a/src/java/org/lwjgl/opengl/GLContext.java +++ b/src/java/org/lwjgl/opengl/GLContext.java @@ -205,7 +205,7 @@ public final class GLContext { public static long getFunctionAddress(String name) { ByteBuffer buffer = MemoryUtil.encodeASCII(name); long address = ngetFunctionAddress(MemoryUtil.getAddress(buffer)); - if (address == null) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name); + if (address == 0L) LWJGLUtil.logger().log(() -> "Could not locate symbol " + name); return address; } private static native long ngetFunctionAddress(long name);