summaryrefslogtreecommitdiff
path: root/examples/nq/glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nq/glue.c')
-rw-r--r--examples/nq/glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nq/glue.c b/examples/nq/glue.c
index 5d8c6f0..07dfae7 100644
--- a/examples/nq/glue.c
+++ b/examples/nq/glue.c
@@ -34,8 +34,8 @@ int main(int argc, char **argv) {
printf("usage: %s n\n", argv[0]);
} else {
- int n = atoi(argv[1]);
- int n_solns = *((int *) count_solns(&n));
+ uintptr_t n = atoi(argv[1]);
+ int n_solns = (int) count_solns((void *) n);
printf("%i solutions found\n", n_solns);
}