Skip to content

Commit 7003611

Browse files
authored
Fix fail of @saferintegers with ^ operator
1 parent e7fe91b commit 7003611

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/SaferIntTypes.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ end
7878

7979

8080
function changetypes(ex::Expr)
81-
if Meta.isexpr(ex, :call, 3) && ex.args[1] == :^ && ex.args[3] isa Int
82-
# mimic Julia 0.6/0.7's lowering to literal_pow
83-
return Expr(:call, ChangeType.literal_pow, :^, changetype(ex.args[2]), Val{ex.args[3]}())
84-
elseif Meta.isexpr(ex, :call, 2) && ex.args[1] == :include
81+
if Meta.isexpr(ex, :call, 2) && ex.args[1] == :include
8582
return :($include(@__MODULE__, $(ex.args[2])))
8683
elseif Meta.isexpr(ex, :call) && ex.args[1] in changefuncs
8784
return Expr(:call, Core.eval(SaferIntTypes, ex.args[1]), changetype.(ex.args[2:end])...)

0 commit comments

Comments
 (0)