Skip to content

Commit

Permalink
avoid type-punned warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Jul 10, 2017
1 parent 0e9ac35 commit d0af7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkd/pyspherematch.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ initspherematch_c(void) {
m = Py_InitModule3("spherematch_c", spherematchMethods,
"spherematch_c provides python bindings for the libkd library");

Py_INCREF(&KdType);
Py_INCREF((PyObject*)&KdType);
PyModule_AddObject(m, "KdTree", (PyObject*)&KdType);
}

Expand Down

0 comments on commit d0af7bf

Please sign in to comment.