Skip to content

Commit 22bacab

Browse files
committed
Fix isone
1 parent a59a85a commit 22bacab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ function VectorAffineFunction{T}(f::VectorOfVariables) where T
382382
end
383383

384384
if VERSION < v"0.7-"
385-
isone(x::T) = x == one(T)
385+
isone(x) = x == one(x)
386386
end
387387

388388
# Conversion between scalar functions

0 commit comments

Comments
 (0)