File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -509,25 +509,25 @@ static inline void
509
509
write_obj (uint16_t * p , PyObject * obj )
510
510
{
511
511
uintptr_t val = (uintptr_t )obj ;
512
- #if SIZEOF_UINTPTR_T == 8
512
+ #if SIZEOF_VOID_P == 8
513
513
write_u64 (p , val );
514
- #elif SIZEOF_UINTPTR_T == 4
514
+ #elif SIZEOF_VOID_P == 4
515
515
write_u32 (p , val );
516
516
#else
517
- #error "sizeof(uintptr_t) must be 4 or 8"
517
+ #error "SIZEOF_VOID_P must be 4 or 8"
518
518
#endif
519
519
}
520
520
521
521
static inline PyObject *
522
522
read_obj (uint16_t * p )
523
523
{
524
524
uintptr_t val ;
525
- #if SIZEOF_UINTPTR_T == 8
525
+ #if SIZEOF_VOID_P == 8
526
526
val = read_u64 (p );
527
- #elif SIZEOF_UINTPTR_T == 4
527
+ #elif SIZEOF_VOID_P == 4
528
528
val = read_u32 (p );
529
529
#else
530
- #error "sizeof(uintptr_t) must be 4 or 8"
530
+ #error "SIZEOF_VOID_P must be 4 or 8"
531
531
#endif
532
532
return (PyObject * )val ;
533
533
}
You can’t perform that action at this time.
0 commit comments