There was an error while loading. Please reload this page.
1 parent a69012e commit 9c5975aCopy full SHA for 9c5975a
bson/_cbson.h
@@ -18,12 +18,13 @@
18
#define _CBSON_H
19
20
#include <Python.h>
21
+#include <stdio.h>
22
#include "buffer.h"
23
24
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
-typedef int Py_ssize_t;
25
-#define PY_SSIZE_T_MAX INT_MAX
26
-#define PY_SSIZE_T_MIN INT_MIN
+typedef unsigned int Py_ssize_t;
+#define PY_SSIZE_T_MAX UINT_MAX
27
+#define PY_SSIZE_T_MIN 0
28
#endif
29
30
int buffer_write_bytes(buffer_t buffer, const char* data, int size);
0 commit comments