Skip to content

Commit 02ccb71

Browse files
committed
Fix type conversions compiler warnings in hpy_jni.c
1 parent aca12bd commit 02ccb71

File tree

1 file changed

+4
-4
lines changed
  • graalpython/com.oracle.graal.python.jni/src

1 file changed

+4
-4
lines changed

graalpython/com.oracle.graal.python.jni/src/hpy_jni.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ _HPy_HIDDEN void upcallBulkClose(HPyContext *ctx, HPy *items, HPy_ssize_t nitems
504504
}
505505

506506
HPy augment_Global_Load(HPyContext *ctx, HPyGlobal global) {
507-
long bits = toBits(global);
507+
uint64_t bits = toBits(global);
508508
if (bits && isBoxedHandle(bits)) {
509509
return original_Global_Load(ctx, global);
510510
} else {
@@ -513,7 +513,7 @@ HPy augment_Global_Load(HPyContext *ctx, HPyGlobal global) {
513513
}
514514

515515
void augment_Global_Store(HPyContext *ctx, HPyGlobal *global, HPy h) {
516-
long bits = toBits(h);
516+
uint64_t bits = toBits(h);
517517
if (bits && isBoxedHandle(bits)) {
518518
original_Global_Store(ctx, global, h);
519519
} else {
@@ -522,7 +522,7 @@ void augment_Global_Store(HPyContext *ctx, HPyGlobal *global, HPy h) {
522522
}
523523

524524
HPy augment_Field_Load(HPyContext *ctx, HPy source_object, HPyField source_field) {
525-
long bits = toBits(source_field);
525+
uint64_t bits = toBits(source_field);
526526
if (bits && isBoxedHandle(bits)) {
527527
return original_Field_Load(ctx, source_object, source_field);
528528
} else {
@@ -531,7 +531,7 @@ HPy augment_Field_Load(HPyContext *ctx, HPy source_object, HPyField source_field
531531
}
532532

533533
void augment_Field_Store(HPyContext *ctx, HPy target_object, HPyField *target_field, HPy h) {
534-
long bits = toBits(h);
534+
uint64_t bits = toBits(h);
535535
if (bits && isBoxedHandle(bits)) {
536536
original_Field_Store(ctx, target_object, target_field, h);
537537
} else {

0 commit comments

Comments
 (0)