diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 23:55:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 23:55:51 -0400 |
commit | f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9 (patch) | |
tree | 030aab76933a75b503cc7dab5c44465ad9ed290d /sim/bfin/dv-bfin_nfc.c | |
parent | fad7f13ae13b03edfd8f0f2833af09d3a65a6bc7 (diff) | |
download | gdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.zip gdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.tar.gz gdb-f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9.tar.bz2 |
sim: bfin: cast pointers using uintptr_t
We can't assume that sizeof(long) == sizeof(void*), so change all
these casts over to uintptr_t.
Diffstat (limited to 'sim/bfin/dv-bfin_nfc.c')
-rw-r--r-- | sim/bfin/dv-bfin_nfc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/bfin/dv-bfin_nfc.c b/sim/bfin/dv-bfin_nfc.c index 80fe49d..17048a8 100644 --- a/sim/bfin/dv-bfin_nfc.c +++ b/sim/bfin/dv-bfin_nfc.c @@ -84,7 +84,7 @@ bfin_nfc_io_write_buffer (struct hw *me, const void *source, int space, value = dv_load_2 (source); mmr_off = addr - nfc->base; - valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off); + valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off); HW_TRACE_WRITE (); @@ -134,7 +134,7 @@ bfin_nfc_io_read_buffer (struct hw *me, void *dest, int space, return 0; mmr_off = addr - nfc->base; - valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off); + valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off); HW_TRACE_READ (); |