Skip to content

Commit a9dce03

Browse files
committed
Fix #25
1 parent 33446b2 commit a9dce03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "429591f6-91af-11e9-00e2-59fbe8cec110"
33
authors = ["Pierre Lairez <pierre@lairez.fr>"]
44
description = "Fast and exact geometrical predicates in the Euclidean plane"
55
licence = "MIT"
6-
version = "2.2.7"
6+
version = "2.2.8"
77

88
[deps]
99
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"

src/Codegen.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function ivfilter(f :: Formula ; withretcode :: Bool = false)
337337
$(withretcode ? :(return (-1, $interval_flt)) : :(return -1))
338338
elseif isstrictless(interval(0.0), $ivres)
339339
$(withretcode ? :(return (1, $interval_flt)) : :(return 1))
340-
elseif $ivres == 0
340+
elseif mag($ivres) == 0
341341
$(withretcode ? :(return (0, $interval_flt)) : :(return 0))
342342
end
343343
end

0 commit comments

Comments
 (0)