mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 21:19:31 -06:00
move the C sources to the subfolder pgf again for backwards compatibility
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <Python.h>
|
||||
#include "structmember.h"
|
||||
|
||||
#include <pgf.h>
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define PyIntObject PyLongObject
|
||||
@@ -3521,7 +3521,7 @@ pgf_readPGF(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
} else if (err.type == PGF_EXN_PGF_ERROR) {
|
||||
PyErr_SetString(PGFError, err.msg);
|
||||
free(err.msg);
|
||||
free((char*) err.msg);
|
||||
Py_DECREF(py_pgf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user