(int)(void*)(int) 64 vs 32

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jacob jacob01 at gmx.net
Thu Feb 25 09:03:21 UTC 2016


Hi

On 24.02.2016 20:07, Neels Hofmeyr wrote:
> On my 64bit system, I get warnings about casting int to pointer of
> different size and vice versa. However, below patch only shifts the
> warnings to 32bit systems, right?
>
> Should we encapsulate in some #ifdef __i386__ or is there an always-native
> int type?

What about using uintptr_t from stdint.h ?

Jacob




More information about the OpenBSC mailing list