Skip to content

Commit

Permalink
Fix for Julia 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Jan 4, 2024
1 parent c271ae1 commit bd341d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ end
# Workaround for slow dynamic dispatch for creating objects
const DEFAULT_PARSERCONTEXT = ParserContext{Dict{String, Any}, Int64, true, nothing}()
function _get_parsercontext(dicttype, inttype, allownan, null)
if dicttype == Dict{String, Any} && inttype == Int64 && allownan && isnothing(null)
if dicttype == Dict{String, Any} && inttype == Int64 && allownan && null === nothing
DEFAULT_PARSERCONTEXT
else
ParserContext{unparameterize_type(dicttype), inttype, allownan, null}.instance
Expand Down

0 comments on commit bd341d2

Please sign in to comment.