mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
fix a typo
change optim level
This commit is contained in:
parent
1be6d72a97
commit
dda2bd92d2
@ -1,3 +1,3 @@
|
|||||||
rm -rf web/lib/
|
rm -rf web/lib/
|
||||||
mkdir -p web/lib/
|
mkdir -p web/lib/
|
||||||
emcc src/main.cpp -fexceptions -sEXIT_RUNTIME -O2 -sEXPORTED_FUNCTIONS=_repl_input,_repl_start -sEXPORTED_RUNTIME_METHODS=ccall -o web/lib/pocketpy.js
|
emcc src/main.cpp -fexceptions -sEXIT_RUNTIME -O3 -sEXPORTED_FUNCTIONS=_repl_input,_repl_start -sEXPORTED_RUNTIME_METHODS=ccall -o web/lib/pocketpy.js
|
@ -79,7 +79,7 @@ struct _Range {
|
|||||||
|
|
||||||
struct _Slice {
|
struct _Slice {
|
||||||
int start = 0;
|
int start = 0;
|
||||||
int stop = 2147483647; // contain types always use int32 as index, no support for int64
|
int stop = 2147483647; // container types always use int32 as index, no support for int64
|
||||||
|
|
||||||
void normalize(int len){
|
void normalize(int len){
|
||||||
if(start < 0) start += len;
|
if(start < 0) start += len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user