py3: Fix incorrect conversion of bytes args in palmdoc module

This commit is contained in:
Kovid Goyal 2019-04-11 10:17:53 +05:30
parent 6e87989022
commit 2c3c25da02
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,7 +43,7 @@ typedef struct {
#define CHAR(x) (( (x) > 127 ) ? (x)-256 : (x))
#if PY_MAJOR_VERSION >= 3
#define BUFFER_FMT "y*"
#define BUFFER_FMT "y#"
#define BYTES_FMT "y#"
#else
#define BUFFER_FMT "t#"