mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
fix a bug
This commit is contained in:
parent
9a4eef6168
commit
8f29dcbca7
4
src/vm.h
4
src/vm.h
@ -1097,7 +1097,7 @@ public:
|
||||
}
|
||||
|
||||
std::optional<_Str> readSharedStr(){
|
||||
std::optional<_Str> copy = _sharedStr.value();
|
||||
std::optional<_Str> copy = _sharedStr;
|
||||
_sharedStr = {};
|
||||
return copy;
|
||||
}
|
||||
@ -1114,7 +1114,7 @@ public:
|
||||
if(value == nullptr){
|
||||
_sharedStr = {};
|
||||
}else{
|
||||
_sharedStr = value;
|
||||
_sharedStr = _Str(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user