From 2ab1309065cc210945c9acda636538a92010bea9 Mon Sep 17 00:00:00 2001 From: Drvi Date: Wed, 20 Nov 2024 18:43:07 +0100 Subject: [PATCH] make `allow_new_worlds` a `bool` --- src/gf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gf.c b/src/gf.c index cbbe6b9c4ea2a..fdd5b57b5b5a4 100644 --- a/src/gf.c +++ b/src/gf.c @@ -8,6 +8,7 @@ . static parameter inference . method specialization and caching, invoking type inference */ +#include #include #include #include "julia.h" @@ -24,7 +25,7 @@ extern "C" { #endif -static _Atomic(size_t) allow_new_worlds = 1; +static _Atomic(bool) allow_new_worlds = 1; JL_DLLEXPORT _Atomic(size_t) jl_world_counter = 1; // uses atomic acquire/release JL_DLLEXPORT size_t jl_get_world_counter(void) JL_NOTSAFEPOINT {