On Mon, Dec 9, 2013 at 11:04 AM, Christopher Sean Morrison
<[email protected]> wrote:
...
>> I don't think this should make any difference if I were to change it to:
>>
>> -  i = (int *)(base + sdp->sp_offset);
>> + i = (int *)((some-non-void-type *)base + sdp->sp_offset);
>>
>> or would it?
>
> Big difference.  Almost certainly the bug, too.
>
> Say sp_offset is 4.  Casting base to an int* and incrementing by 4 will

That makes more sense for sure.  I wasn't thinking about the actual
data which I was assuming was int in the one case but clearly is a
string.

I hope to report success soon--thanks, Sean!

Best regards,

-Tom

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to