Skip to content

Commit 5aec040

Browse files
committed
minor fixes for merge
1 parent 7384e06 commit 5aec040

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/preamble.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,9 @@ function intArrayFromString(stringy, dontAddNull) {
557557
ret.push(stringy.charCodeAt(i));
558558
i = i + 1;
559559
}
560-
if (!dontAddNull)
560+
if (!dontAddNull) {
561561
ret.push(0);
562+
}
562563
return ret;
563564
}
564565
Module['intArrayFromString'] = intArrayFromString;

tests/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ def test_python(self):
21672167
global EXPORTED_FUNCTIONS; EXPORTED_FUNCTIONS = ['_main', '_PyRun_SimpleStringFlags'] # for the demo
21682168

21692169
self.do_ll_test(path_from_root('tests', 'python', 'python.ll'),
2170-
'hello python world!\n\n[0, 2, 4, 6]\n\n5\n\n22\n\n5.470',
2170+
'hello python world!\n[0, 2, 4, 6]\n5\n22\n5.470',
21712171
args=['-S', '-c' '''print "hello python world!"; print [x*2 for x in range(4)]; t=2; print 10-3-t; print (lambda x: x*2)(11); print '%f' % 5.47'''])
21722172

21732173
### Test cases in separate files

0 commit comments

Comments
 (0)