Skip to content

Commit 9bf835d

Browse files
committed
fix asm relooper bug
1 parent fe0d110 commit 9bf835d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/relooper/Relooper.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ void MultipleShape::Render(bool InLoop) {
273273
RenderLoopPrefix();
274274
bool First = true;
275275
for (BlockShapeMap::iterator iter = InnerMap.begin(); iter != InnerMap.end(); iter++) {
276-
PrintIndented("%sif (label%s == %d) {\n", First ? "" : "else ", AsmJS ? "|0" : "", iter->first->Id);
276+
if (AsmJS) {
277+
PrintIndented("%sif ((label|0) == %d) {\n", First ? "" : "else ", iter->first->Id);
278+
} else {
279+
PrintIndented("%sif (label == %d) {\n", First ? "" : "else ", iter->first->Id);
280+
}
277281
First = false;
278282
Indenter::Indent();
279283
iter->second->Render(InLoop);

tools/shared.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def check_node_version():
172172
# we re-check sanity when the settings are changed)
173173
# We also re-check sanity and clear the cache when the version changes
174174

175-
EMSCRIPTEN_VERSION = '1.2.1'
175+
EMSCRIPTEN_VERSION = '1.2.2'
176176

177177
def check_sanity(force=False):
178178
try:

0 commit comments

Comments
 (0)