Menu

#36 can not do pointer arithmetic on void*

open
5
2008-07-18
2008-07-17
No

Compilation on HP-UX 11.23/IA64 with the native compiler failed to compile hash.c

We changed:
- qi->datum = ((void *)qi + sizeof(llistitem));
+ qi->datum = ((char *)qi + sizeof(llistitem));

Discussion

  • Peter O'Gorman

    Peter O'Gorman - 2008-07-17

    Patch

     
  • Peter O'Gorman

    Peter O'Gorman - 2008-07-17
    • summary: can not do pointer arithmatic on void --> can not do pointer arithmetic on void
     
  • William LeFebvre

    • assigned_to: nobody --> wnl
     

Log in to post a comment.