summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-01-18 11:42:47 +0100
committerGitHub <noreply@github.com>2022-01-18 11:42:47 +0100
commit4015c2c1769989c20ea7234296eea02a16d1703d (patch)
tree4c57d279a8b54df10e6b194b586d3f6423d8e7cd /lib.c
parent0e5b273c3d25d1dce3b469f3a6865f430554e730 (diff)
parent3578afee0ab77650cf6adf3987a6f653f9311e9b (diff)
Merge pull request #32 from jow-/precompile
Introduce ucode precompilation support
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 7ded088..0e77b23 100644
--- a/lib.c
+++ b/lib.c
@@ -2093,7 +2093,7 @@ uc_include(uc_vm_t *vm, size_t nargs)
if (!closure)
return NULL;
- p = include_path(closure->function->source->filename, ucv_string_get(path));
+ p = include_path(closure->function->program->source->filename, ucv_string_get(path));
if (!p) {
uc_vm_raise_exception(vm, EXCEPTION_RUNTIME,
@@ -2505,7 +2505,7 @@ uc_sourcepath(uc_vm_t *vm, size_t nargs)
continue;
}
- path = realpath(frame->closure->function->source->filename, NULL);
+ path = realpath(frame->closure->function->program->source->filename, NULL);
break;
}