Skip to content

Commit

Permalink
Guard use of @atomic with @static if
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Jan 19, 2024
1 parent eea6320 commit efc9a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anonymous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end

baremodule __deserialized_types__ end

if VERSION < v"1.7-"
@static if VERSION < v"1.7-"
function newstruct_raw(cache, ::Type{TypeName}, d, init)
name = raise_recursive(d[:data][2], cache, init)
name = isdefined(__deserialized_types__, name) ? gensym() : name
Expand Down

0 comments on commit efc9a6c

Please sign in to comment.