From d3a227ac192fc5bacd18441a5c086122be4c749c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Fri, 12 Jul 2019 20:04:40 +0200 Subject: [PATCH] added some printfs for SO --- c/interaction/interaction.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c/interaction/interaction.c b/c/interaction/interaction.c index d9b78a0..ddf5368 100644 --- a/c/interaction/interaction.c +++ b/c/interaction/interaction.c @@ -38,6 +38,8 @@ interaction_ufunc_force npy_intp i; + printf("DATA IS: %x\n", data); + printf("DATA[0] IS: %x\n", data[0]); float * coefficients = (float *) data[0]; for(i = 0; i < n; i++) @@ -227,7 +229,8 @@ interaction_UFuncWrapper_init } } Py_INCREF(self->ufunc); - printf("%x\n", self->coefficients); + printf("PASSED = %x\n", &(self->coefficients)); + printf("PASSED[0] = %x\n", self->coefficients); return 0; }