mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update codeobject.h
Update codeobject.h
This commit is contained in:
parent
53b33eb2f2
commit
32f0525484
@ -121,8 +121,7 @@ public:
|
||||
}
|
||||
|
||||
_Str errorSnapshot(){
|
||||
int line = -1;
|
||||
if(!isCodeEnd()) line = code->co_code[ip-1].line;
|
||||
int line = code->co_code[ip-1].line;
|
||||
return code->src->snapshot(line);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user