mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30: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);
|
if(!is_inlined()) pool64.dealloc(data);
|
||||||
size = other.size;
|
size = other.size;
|
||||||
is_ascii = other.is_ascii;
|
is_ascii = other.is_ascii;
|
||||||
|
_cached_c_str = nullptr;
|
||||||
_alloc();
|
_alloc();
|
||||||
memcpy(data, other.data, size);
|
memcpy(data, other.data, size);
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user