We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e33147 commit b9ffa18Copy full SHA for b9ffa18
1 file changed
mypyc/lib-rt/librt_internal.c
@@ -98,7 +98,7 @@ ReadBuffer_init_internal(ReadBufferObject *self, PyObject *source) {
98
return -1;
99
}
100
self->source = Py_NewRef(source);
101
- self->ptr = PyBytes_AsString(source);
+ self->ptr = PyBytes_AS_STRING(source);
102
self->end = self->ptr + PyBytes_GET_SIZE(source);
103
return 0;
104
0 commit comments