1
0
forked from GitHub/gf-core

Implement Expr_str correctly (but doesn't handle big ints yet)

This commit is contained in:
John J. Camilleri
2021-09-13 10:03:26 +02:00
parent cb6d385fc0
commit 5f5bd7a83b
4 changed files with 45 additions and 26 deletions

View File

@@ -9,7 +9,7 @@
static PyObject *
Expr_str(ExprObject *self)
{
PgfText *s = pgf_print_expr((PgfExpr) self, NULL, 1, &marshaller);
PgfText *s = pgf_print_expr((PgfExpr) self, NULL, 0, &marshaller);
PyObject *str = PyUnicode_FromStringAndSize(s->text, s->size);
free(s);
return str;