From 888ddb08ff0ed2e37138a2bae4927c7d6917ba74 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 24 Nov 2017 09:55:54 +0200 Subject: Fix a compile error on 2.x. Closes #193. --- simplejson/_speedups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simplejson/_speedups.c') diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 017e7ae..b691b4b 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -2821,7 +2821,7 @@ encoder_encode_string(PyEncoderObject *s, PyObject *obj) encoded = PyObject_CallFunctionObjArgs(s->encoder, obj, NULL); if (encoded != NULL && #if PY_MAJOR_VERSION < 3 - !JSON_ASCII_Check(unicode) && + !JSON_ASCII_Check(encoded) && #endif /* PY_MAJOR_VERSION < 3 */ !PyUnicode_Check(encoded)) { -- cgit v1.2.1