Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information