Commit 968c6594 authored by Frédéric Karamé's avatar Frédéric Karamé

Add @inbounds.

parent b67359ce
......@@ -261,7 +261,7 @@ macro dynare(modfiles::Expr, opts...)
args = Array{Expr}(undef, length(modfiles.args))
for i=1:length(modfiles.args)
compile(modfiles.args[i], options)
args[i] = Expr(:., Symbol(split(modfiles.args[i], ".mod"; keepempty=false)[1]))
@inbounds args[i] = Expr(:., Symbol(split(modfiles.args[i], ".mod"; keepempty=false)[1]))
end
return Expr(:import, args...)
end
......@@ -286,7 +286,7 @@ macro dynare(modfiles::Expr)
args = Array{Expr}(undef, length(modfiles.args))
for i=1:length(modfiles.args)
compile(modfiles.args[i], options)
args[i] = Expr(:., Symbol(split(modfiles.args[i], ".mod"; keepempty=false)[1]))
@inbounds args[i] = Expr(:., Symbol(split(modfiles.args[i], ".mod"; keepempty=false)[1]))
end
return Expr(:import, args...)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment