Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

can't add to a void *

  • Loading branch information...
commit 5e2762ac320e5591435d6dd036881b004c7c0c37 1 parent 680c329
Tony Cook authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  datatypes.c
View
2  datatypes.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.