Skip to content

Commit

Permalink
Fix preexisting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik authored Jan 4, 2024
1 parent c48d2b4 commit c271ae1
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
if dicttype == Dict{String, Any} && inttype == Int64 && allownan && isnothing(null)
DEFAULT_PARSERCONTEXT
else
ParserContext{unparameterize_type(dicttype), inttype, allownan, null}.instance
Expand Down

0 comments on commit c271ae1

Please sign in to comment.