mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 16:11:59 +00:00
Added missing c-style cast in string_caster::load_raw for the bytearray case
This commit is contained in:
parent
70b7f0805f
commit
a453fdb2b1
@ -502,7 +502,7 @@ private:
|
|||||||
if (!bytearray) {
|
if (!bytearray) {
|
||||||
pybind11_fail("Unexpected PyByteArray_AsString() failure.");
|
pybind11_fail("Unexpected PyByteArray_AsString() failure.");
|
||||||
}
|
}
|
||||||
value = StringType(bytearray, (size_t) PyByteArray_Size(src.ptr()));
|
value = StringType((const C *) bytearray, (size_t) PyByteArray_Size(src.ptr()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user