From c24a1ca633ef6c77bd22f63f71058841849d0ee1 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 20 Jul 2023 11:47:06 +0900 Subject: [PATCH] shared object module paths should be split on / --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index 9cc1fa09..3552e246 100644 --- a/src/vm.c +++ b/src/vm.c @@ -1343,7 +1343,7 @@ int krk_loadModule(KrkString * path, KrkValue * moduleOut, KrkString * runAs, Kr const char * start = path->chars; for (const char * c = start; *c; c++) { - if (*c == '.') start = c + 1; + if (*c == '/') start = c + 1; } krk_push(OBJECT_VAL(S("krk_module_onload_")));