Skip to content

Commit 367844d

Browse files
Fixes hasbounds
Closes #1779
1 parent 511c664 commit 367844d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variables.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ See also [`getbounds`](@ref).
135135
"""
136136
function hasbounds(x)
137137
b = getbounds(x)
138-
isfinite(b[1]) && isfinite(b[2])
138+
isfinite(b[1]) || isfinite(b[2])
139139
end
140140

141141
## Disturbance =================================================================

0 commit comments

Comments
 (0)