bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)

when pass bad strict argument.
This commit is contained in:
Segev Finer 2017-07-13 08:52:08 +03:00 committed by Serhiy Storchaka
parent 3fbd70018f
commit 541bd28941
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ static PyTypeObject PyEncoderType;
typedef struct _PyScannerObject {
PyObject_HEAD
char strict;
signed char strict;
PyObject *object_hook;
PyObject *object_pairs_hook;
PyObject *parse_float;