Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calloc Signature & 0.6.6 Release #76

Merged
merged 5 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include \
setup.h CHANGELOG CODE_OF_CONDUCT.md HOW_WE_USE_GITHUB.md LICENSE \
setup.h CHANGELOG.md CODE_OF_CONDUCT.md HOW_WE_USE_GITHUB.md LICENSE \
Makefile README.rst picosat.c picosat.h pycosat.c test_pycosat.py
graft examples/
19 changes: 19 additions & 0 deletions news/calloc-signature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Fix PyMem_Calloc() call signature
kenodegard marked this conversation as resolved.
Show resolved Hide resolved

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
4 changes: 2 additions & 2 deletions pycosat.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
uses an MIT style license.
*/
#define PYCOSAT_URL "https://pypi.python.org/pypi/pycosat"
#define PYCOSAT_VERSION "0.6.5"
#define PYCOSAT_VERSION "0.6.6"

#include <Python.h>

Expand Down Expand Up @@ -271,7 +271,7 @@ static PyObject* itersolve(PyObject *self, PyObject *args, PyObject *kwds)
if (it->picosat == NULL)
return NULL;

it->mem = PyMem_Calloc(picosat_variables(it->picosat) + 1);
it->mem = PyMem_Calloc(picosat_variables(it->picosat) + 1, 1);
if (it->mem == NULL) {
PyErr_NoMemory();
return NULL;
Expand Down
Loading