Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion aggdraw.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
#define M_PI 3.1415926535897931
#endif

#define PY_SSIZE_T_CLEAN 1

#include "Python.h"
#if PY_MAJOR_VERSION >= 3
#define IS_PY3K
Expand Down Expand Up @@ -1564,7 +1566,8 @@ const char *draw_frombytes_doc = "Copies data from a string buffer to the drawin
static PyObject*
draw_frombytes(DrawObject* self, PyObject* args)
{
char* data = NULL; int data_size;
char* data = NULL;
Py_ssize_t data_size;
if (!PyArg_ParseTuple(args, "s#:frombytes", &data, &data_size))
return NULL;

Expand Down