Skip to content

Commit b395064

Browse files
committed
Suport native complex objects in complex builtins
1 parent 1a8e631 commit b395064

File tree

4 files changed

+300
-320
lines changed

4 files changed

+300
-320
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/jni/GraalHPyJNIContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -1677,7 +1677,7 @@ public double ctxLongAsDouble(long handle) {
16771677
} else {
16781678
Object object = context.getObjectForHPyHandle(GraalHPyBoxing.unboxHandle(handle));
16791679
try {
1680-
return (double) PyLongAsDoubleNode.executeUncached(object);
1680+
return PyLongAsDoubleNode.executeUncached(object);
16811681
} catch (PException e) {
16821682
HPyTransformExceptionToNativeNode.executeUncached(context, e);
16831683
return -1L;

0 commit comments

Comments
 (0)