fix(library/compiler/ir_interpreter): --run ignored first argument

This commit is contained in:
Sebastian Ullrich 2019-09-09 16:08:43 +02:00
parent c23e6829c0
commit daae0f67bb

View file

@ -682,7 +682,7 @@ public:
if (params.size() == 2) { // List String -> IO UInt32
lean_object * in = lean_box(0);
int i = argc;
while (i > 1) {
while (i > 0) {
i--;
lean_object * n = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(n, 0, lean_mk_string(argv[i]));