projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
793b474
)
executor: Fix orc_executor_set_program() to save OrcCode
author
Doug Nazar
<nazard@nazar.ca>
Tue, 17 Aug 2021 23:49:08 +0000
(19:49 -0400)
committer
Doug Nazar
<nazard@nazar.ca>
Thu, 2 Sep 2021 18:36:27 +0000
(14:36 -0400)
orc_executor_set_program() was missed when it was added to
orc_executor_new().
orc/orcexecutor.c
patch
|
blob
|
history
diff --git
a/orc/orcexecutor.c
b/orc/orcexecutor.c
index
d1565cb
..
116220c
100644
(file)
--- a/
orc/orcexecutor.c
+++ b/
orc/orcexecutor.c
@@
-24,8
+24,7
@@
orc_executor_new (OrcProgram *program)
ex = malloc(sizeof(OrcExecutor));
memset(ex,0,sizeof(OrcExecutor));
- ex->program = program;
- ex->arrays[ORC_VAR_A2] = program->orccode;
+ orc_executor_set_program (ex, program);
return ex;
}
@@
-83,6
+82,7
@@
orc_executor_set_program (OrcExecutor *ex, OrcProgram *program)
} else {
ex->arrays[ORC_VAR_A1] = (void *)orc_executor_emulate;
}
+ ex->arrays[ORC_VAR_A2] = program->orccode;
}
void