Skip to content

Commit 8ae69d2

Browse files
authored
Merge pull request #1818 from ValentinKaisermayer/patch-1
Fixes hasbounds
2 parents 511c664 + 367844d commit 8ae69d2

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)