can't add to a void *
authorTony Cook <tony@develop=help.com>
Wed, 28 Nov 2007 08:48:49 +0000 (08:48 +0000)
committerTony Cook <tony@develop=help.com>
Wed, 28 Nov 2007 08:48:49 +0000 (08:48 +0000)
datatypes.c

index 8d23bf9..a1efb99 100644 (file)
@@ -170,7 +170,7 @@ llist_dump(struct llist *l) {
     for(j=0;j<lnk->fill;j++) {
       /*       memcpy(&k,(char*)(lnk->data)+l->ssize*j,sizeof(void*));*/
       /*memcpy(&k,(char*)(lnk->data)+l->ssize*j,sizeof(void*));*/
-      printf("%d - %p\n",i,*(void **)((lnk->data)+l->ssize*j));
+      printf("%d - %p\n",i,*(void **)((char *)(lnk->data)+l->ssize*j));
       i++;
     }
     lnk=lnk->n;