On Mon, May 11, 2009 at 5:25 PM, Nicolas Pitre <n...@cam.org> wrote:
> On Mon, 11 May 2009, Øyvind Harboe wrote:
>
>> 2009/5/11 Nicolas Pitre <n...@cam.org>:
>> >
>> > cc1: warnings being treated as errors
>> > jtag.c: In function ‘jtag_check_value_mask_callback':
>> > jtag.c:703: error: cast from pointer to integer of different size
>> > jtag.c: In function ‘jtag_add_scan_check':
>> > jtag.c:740: error: cast to pointer from integer of different size
>>
>> Is this a 64 bit host?
>
> Yes.

Hmm.... so what's the correct way to cast a void * to an int (keeping only
as many bits as will fit in an int) on a 64 bit system?

Alternatively I could use a less clever scheme and have a union of int
& void *...

Thoughts?



-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to