Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make incompatible pointer type warnings go away by explicitly casting.

  • Loading branch information...
commit 8cacb6c93afeafaf6c42467b2794e91400771617 1 parent 13c6315
@PeterScott authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.c
View
2  main.c
@@ -52,7 +52,7 @@ int main(int argc, char** argv) {
printf("Real min: %d\n", min);
// Try to get the minimum
- while (heap_delmin(&h, &min_key, &min_val)) {
+ while (heap_delmin(&h, (void**)&min_key, (void**)&min_val)) {
// Verify that the values are getting larger
if (*prev_key > *min_key) {
printf("Previous key is greater than current key!\n");
Please sign in to comment.
Something went wrong with that request. Please try again.