From dda2bd92d22238a56b3dd51a82275977e1000104 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 11 Nov 2022 21:54:50 +0800 Subject: [PATCH] fix a typo change optim level --- build_cpp.sh | 2 +- build_wasm.sh | 2 +- src/obj.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_cpp.sh b/build_cpp.sh index 50a9e701..88aae3f9 100644 --- a/build_cpp.sh +++ b/build_cpp.sh @@ -1 +1 @@ -g++ -o pocketpy src/main.cpp --std=c++17 -O1 +g++ -o pocketpy src/main.cpp --std=c++17 -O1 \ No newline at end of file diff --git a/build_wasm.sh b/build_wasm.sh index c45d6301..4fe3047c 100644 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -1,3 +1,3 @@ rm -rf 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 \ No newline at end of file +emcc src/main.cpp -fexceptions -sEXIT_RUNTIME -O3 -sEXPORTED_FUNCTIONS=_repl_input,_repl_start -sEXPORTED_RUNTIME_METHODS=ccall -o web/lib/pocketpy.js \ No newline at end of file diff --git a/src/obj.h b/src/obj.h index ba210a13..9b3add90 100644 --- a/src/obj.h +++ b/src/obj.h @@ -79,7 +79,7 @@ struct _Range { struct _Slice { 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){ if(start < 0) start += len;