fix the crashes

This commit is contained in:
krangelov
2021-09-11 23:32:50 +02:00
parent 08923a57b9
commit 375452063f
2 changed files with 37 additions and 34 deletions

View File

@@ -207,7 +207,7 @@ PyTypeObject pgf_ExprLitType = {
static PyObject *
Type_str(TypeObject *self)
{
PgfText *s = pgf_print_type((PgfType) self, NULL, 1, &marshaller);
PgfText *s = pgf_print_type((PgfType) self, NULL, 0, &marshaller);
PyObject *str = PyUnicode_FromStringAndSize(s->text, s->size);
free(s);
return str;