mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix pybind11
This commit is contained in:
parent
000fd1f087
commit
972f86f781
@ -136,7 +136,7 @@ iterator interface<Dervied>::end() const {
|
||||
class str : public object {
|
||||
PKBIND_TYPE_IMPL(object, str, tp_str);
|
||||
|
||||
str(const char* data, int size) : object(alloc_t{}) { py_newstrv(m_ptr, (c11_sv){data, size}); }
|
||||
str(const char* data, int size) : object(alloc_t{}) { py_newstrv(m_ptr, {data, size}); }
|
||||
|
||||
str(const char* data) : str(data, static_cast<int>(strlen(data))) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user