We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9ccc8 commit c722323Copy full SHA for c722323
graalpython/com.oracle.graal.python.jni/src/hpy_jni.c
@@ -280,14 +280,13 @@ static void *augment_AsStruct(HPyContext *ctx, HPy h) {
280
281
static HPy augment_Long(HPyContext *ctx, HPy h) {
282
uint64_t bits = toBits(h);
283
- if (isBoxedHandle(bits)) {
284
- return original_Long(ctx, h);
285
- } else if (isBoxedInt(bits)) {
+ if (isBoxedInt(bits)) {
286
return h;
287
} else if (isBoxedDouble(bits)) {
288
double v = unboxDouble(bits);
289
return toPtr(boxInt((int) v));
290
}
+ return original_Long(ctx, h);
291
292
293
static HPy augment_Float_FromDouble(HPyContext *ctx, double v) {
0 commit comments