Skip to content

Commit

Permalink
Merge pull request #451 from jakirkham/fix_py37_unicode_conv_bug
Browse files Browse the repository at this point in the history
Receive `const char *` from `PyUnicode_AsUTF8`
  • Loading branch information
ukoethe authored Oct 19, 2018
2 parents 8982135 + a6fa626 commit 8acd73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vigranumpy/src/core/vigranumpycore.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ UInt32 pychecksum(python::str const & s)
return checksum(data, size);
#else
Py_ssize_t size = 0;
char * data = PyUnicode_AsUTF8AndSize(s.ptr(), &size);
const char * data = PyUnicode_AsUTF8AndSize(s.ptr(), &size);
return checksum(data, size);
#endif
}
Expand Down

0 comments on commit 8acd73a

Please sign in to comment.