Skip to content

Commit 96311dd

Browse files
committed
check if exponent is Real in pow lowering
1 parent c51b8d2 commit 96311dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function_to_expr(op, args, st) = nothing
100100

101101
function function_to_expr(::typeof(^), O, st)
102102
args = arguments(O)
103-
if length(args) == 2 && args[2] isa Number && args[2] < 0
103+
if length(args) == 2 && args[2] isa Real && args[2] < 0
104104
ex = args[1]
105105
if args[2] == -1
106106
return toexpr(Term{Any}(inv, [ex]), st)

0 commit comments

Comments
 (0)