mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
fa61a28740
commit
b1ffa191d2
@ -272,7 +272,11 @@ static bool str_join(int argc, py_Ref argv) {
|
|||||||
bool first = true;
|
bool first = true;
|
||||||
while(true) {
|
while(true) {
|
||||||
int res = py_next(py_peek(-1));
|
int res = py_next(py_peek(-1));
|
||||||
if(res == -1) return false;
|
if(res == -1) {
|
||||||
|
c11_sbuf__dtor(&buf);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(res == 0) break;
|
if(res == 0) break;
|
||||||
|
|
||||||
if(!first) c11_sbuf__write_sv(&buf, self);
|
if(!first) c11_sbuf__write_sv(&buf, self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user