summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.py b/check.py
index 88d109315..b8b6b8fc7 100755
--- a/check.py
+++ b/check.py
@@ -170,7 +170,7 @@ def split_wast(wast):
ret = []
def to_end(j):
depth = 1
- while depth > 0:
+ while depth > 0 and j < len(wast):
if wast[j] == '"':
j = wast.find('"', j + 1)
elif wast[j] == '(':