From 8e7b1e9ce0d866ac1b7d6765171c49dd7afe26ad Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 6 Sep 2025 10:35:10 -0500 Subject: [PATCH] Don't try for backwards compat with compiled modules - Address #1639 This guarantee is difficult to maintain and shouldn't be needed. --- src/core/corelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index 9c03f51c..b30a4a2c 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -66,7 +66,7 @@ JanetModule janet_native(const char *name, const uint8_t **error) { JanetBuildConfig modconf = getter(); JanetBuildConfig host = janet_config_current(); if (host.major != modconf.major || - host.minor < modconf.minor || + host.minor != modconf.minor || host.bits != modconf.bits) { char errbuf[128]; snprintf(errbuf, sizeof(errbuf), "config mismatch - host %d.%.d.%d(%.4x) vs. module %d.%d.%d(%.4x)",