Skip to content

Commit

Permalink
make allow_new_worlds a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Drvi committed Nov 20, 2024
1 parent 917f872 commit 2ab1309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
. static parameter inference
. method specialization and caching, invoking type inference
*/
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "julia.h"
Expand All @@ -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
{
Expand Down

0 comments on commit 2ab1309

Please sign in to comment.