Commit 7a71d77
committed
Fix incorrect const qualifier in membuf.pyx
Without this change, I see errors when building netCDF4-python,
originating at the line `free(self.memory)` in `__dealloc__()`:
.../_cython/_netCDF4.cc:12922:3: error: no matching function for call to 'free'
12922 | free(__pyx_v_self->memory);
| ^~~~
.../include/stdlib.h:563:13: note: candidate function not viable: 1st argument ('const void *') would lose const qualifier
563 | extern void free (void *__ptr) __THROW;
| ^ ~~~~~~~~~~~
Apparently it is not valid call `free()` on a `const` variable.1 parent 9426a68 commit 7a71d77
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments