mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: Fix incorrect conversion of bytes args in palmdoc module
This commit is contained in:
parent
6e87989022
commit
2c3c25da02
@ -43,7 +43,7 @@ typedef struct {
|
|||||||
#define CHAR(x) (( (x) > 127 ) ? (x)-256 : (x))
|
#define CHAR(x) (( (x) > 127 ) ? (x)-256 : (x))
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
#define BUFFER_FMT "y*"
|
#define BUFFER_FMT "y#"
|
||||||
#define BYTES_FMT "y#"
|
#define BYTES_FMT "y#"
|
||||||
#else
|
#else
|
||||||
#define BUFFER_FMT "t#"
|
#define BUFFER_FMT "t#"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user