Skip to content

Commit b9ffa18

Browse files
committed
Minor optimization
1 parent 2e33147 commit b9ffa18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypyc/lib-rt/librt_internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ReadBuffer_init_internal(ReadBufferObject *self, PyObject *source) {
9898
return -1;
9999
}
100100
self->source = Py_NewRef(source);
101-
self->ptr = PyBytes_AsString(source);
101+
self->ptr = PyBytes_AS_STRING(source);
102102
self->end = self->ptr + PyBytes_GET_SIZE(source);
103103
return 0;
104104
}

0 commit comments

Comments
 (0)