From 0e6b8ab61bc781d6dfe54f4411ae4ac2886ec1af Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 11 Nov 2022 19:15:56 +0800 Subject: [PATCH] fix a bug --- .github/workflows/main.yml | 2 -- src/error.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0457f446..c08ecb1e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,8 +23,6 @@ jobs: steps: - uses: actions/checkout@v2 - uses: mymindstorm/setup-emsdk@v11 - with: - emsdk-version: 3.1.25 - name: Compiling run: | bash build_wasm.sh diff --git a/src/error.h b/src/error.h index 6a5c60a0..653cc071 100644 --- a/src/error.h +++ b/src/error.h @@ -81,6 +81,6 @@ private: return ss.str(); } public: - RuntimeError(_Str type, _Str msg, std::stack<_Str> snapshots) + RuntimeError(_Str type, _Str msg, const std::stack<_Str>& snapshots) : _Error(type, msg, __concat(snapshots)) {} }; \ No newline at end of file