diff --git a/core/src/main/java/org/teavm/model/lowlevel/NativePointerFinder.java b/core/src/main/java/org/teavm/model/lowlevel/NativePointerFinder.java index 8fa025363..280100fa4 100644 --- a/core/src/main/java/org/teavm/model/lowlevel/NativePointerFinder.java +++ b/core/src/main/java/org/teavm/model/lowlevel/NativePointerFinder.java @@ -119,6 +119,7 @@ public class NativePointerFinder { return false; } String className = ((ValueType.Object) type).getClassName(); - return characteristics.isStructure(className) || className.equals(Address.class.getName()); + return characteristics.isStructure(className) || className.equals(Address.class.getName()) + || characteristics.isFunction(className); } }