[Eug-lug] LP64

Jacob Meuser jakemsr at jakemsr.com
Sat Jan 8 19:44:33 PST 2005


so I got an amd64 mobo (ASUS KV8 SE Deluxe) and 3000+ CPU.

now, I've got a programming question ;)

If there's code that does

	void *data;
	...
	data = (void*)open(...);

would it be "fixed" by adding a intptr_t cast?

	void *data;
	...
	data = (void*)(intptr_t)open(...);

it shuts gcc up anyway.

where is intptr_t defined on GNU/Linux?  it's in <inttypes.h> on
OpenBSD.

-- 
<jakemsr at jakemsr.com>


More information about the EUGLUG mailing list