@@ -504,7 +504,7 @@ _HPy_HIDDEN void upcallBulkClose(HPyContext *ctx, HPy *items, HPy_ssize_t nitems
504
504
}
505
505
506
506
HPy augment_Global_Load (HPyContext * ctx , HPyGlobal global ) {
507
- long bits = toBits (global );
507
+ uint64_t bits = toBits (global );
508
508
if (bits && isBoxedHandle (bits )) {
509
509
return original_Global_Load (ctx , global );
510
510
} else {
@@ -513,7 +513,7 @@ HPy augment_Global_Load(HPyContext *ctx, HPyGlobal global) {
513
513
}
514
514
515
515
void augment_Global_Store (HPyContext * ctx , HPyGlobal * global , HPy h ) {
516
- long bits = toBits (h );
516
+ uint64_t bits = toBits (h );
517
517
if (bits && isBoxedHandle (bits )) {
518
518
original_Global_Store (ctx , global , h );
519
519
} else {
@@ -522,7 +522,7 @@ void augment_Global_Store(HPyContext *ctx, HPyGlobal *global, HPy h) {
522
522
}
523
523
524
524
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 );
526
526
if (bits && isBoxedHandle (bits )) {
527
527
return original_Field_Load (ctx , source_object , source_field );
528
528
} else {
@@ -531,7 +531,7 @@ HPy augment_Field_Load(HPyContext *ctx, HPy source_object, HPyField source_field
531
531
}
532
532
533
533
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 );
535
535
if (bits && isBoxedHandle (bits )) {
536
536
original_Field_Store (ctx , target_object , target_field , h );
537
537
} else {
0 commit comments