|
From: Tom H. <to...@co...> - 2005-05-07 16:54:37
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> ss->ss_sp has type "void*". So if you add an integer i to it, it will
> really add "sizeof(void*) * i" to it, right? If it had type "Addr"
> instead, adding i to it would really add i to it.
Ah right. I understand now... I didn't realise it was a void pointer.
I'll fix it up, but we really should have the gcc warning for doing
arithmetic on void pointers turned on.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|