File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -509,25 +509,25 @@ static inline void
509509write_obj (uint16_t * p , PyObject * obj )
510510{
511511 uintptr_t val = (uintptr_t )obj ;
512- #if SIZEOF_UINTPTR_T == 8
512+ #if SIZEOF_VOID_P == 8
513513 write_u64 (p , val );
514- #elif SIZEOF_UINTPTR_T == 4
514+ #elif SIZEOF_VOID_P == 4
515515 write_u32 (p , val );
516516#else
517- #error "sizeof(uintptr_t) must be 4 or 8"
517+ #error "SIZEOF_VOID_P must be 4 or 8"
518518#endif
519519}
520520
521521static inline PyObject *
522522read_obj (uint16_t * p )
523523{
524524 uintptr_t val ;
525- #if SIZEOF_UINTPTR_T == 8
525+ #if SIZEOF_VOID_P == 8
526526 val = read_u64 (p );
527- #elif SIZEOF_UINTPTR_T == 4
527+ #elif SIZEOF_VOID_P == 4
528528 val = read_u32 (p );
529529#else
530- #error "sizeof(uintptr_t) must be 4 or 8"
530+ #error "SIZEOF_VOID_P must be 4 or 8"
531531#endif
532532 return (PyObject * )val ;
533533}
You can’t perform that action at this time.
0 commit comments