mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix a bug of str assignment
This commit is contained in:
parent
a0bc51ab94
commit
67c0c68463
@ -83,6 +83,7 @@ int utf8len(unsigned char c, bool suppress){
|
||||
if(!is_inlined()) pool64.dealloc(data);
|
||||
size = other.size;
|
||||
is_ascii = other.is_ascii;
|
||||
_cached_c_str = nullptr;
|
||||
_alloc();
|
||||
memcpy(data, other.data, size);
|
||||
return *this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user