use uintptr_t to cast ptr to int.

This commit is contained in:
ksherlock 2019-02-18 10:56:43 -05:00 committed by GitHub
parent fed51ab444
commit 0e9cf9879b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,11 +231,9 @@ STRUCT(Emustate_word32list) {
word32 *wptr;
};
#ifdef __LP64__
# define PTR2WORD(a) ((unsigned long)(a))
#else
# define PTR2WORD(a) ((unsigned int)(a))
#endif
# define PTR2WORD(a) ((uintptr_t)(a))
#define ALTZP (g_c068_statereg & 0x80)