I'm getting an incompatible type in assignment error for the following code:
((hashNode *)t->data)[hashValue] = (hashNode *)calloc(sizeof(hashNode), 1);
And then the same incompatible types in initialization:
hashNode *previous = ((hashNode *)t->data)[hashValue];
I am implementing a hash bucket with linked list and t is a generic structure and hashNode is a node for the linked list. HashValue is the value of the hashfunction so that I know which array spot to enter the hashvalue. I hope you guys understand what is going on here. Any advice would be great! thanks.