Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95502a6

Browse files
committed
Removing my "bone-headed" "not"s and "or"s. Including "math.h" in an
attempt to get VS2003 working. svn path=/trunk/matplotlib/; revision=5056
1 parent 0b48047 commit 95502a6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/_path.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#include <limits>
2+
#include <math.h>
3+
14
#include "agg_py_path_iterator.h"
25
#include "agg_py_transforms.h"
36

@@ -997,10 +1000,10 @@ Py::Object _path_module::count_bboxes_overlapping_bbox(const Py::Tuple& args)
9971000
std::swap(bx0, bx1);
9981001
if (by1 < by0)
9991002
std::swap(by0, by1);
1000-
if (not ((bx1 <= ax0) or
1001-
(by1 <= ay0) or
1002-
(bx0 >= ax1) or
1003-
(by0 >= ay1)))
1003+
if (!((bx1 <= ax0) ||
1004+
(by1 <= ay0) ||
1005+
(bx0 >= ax1) ||
1006+
(by0 >= ay1)))
10041007
++count;
10051008
}
10061009
else

0 commit comments

Comments
 (0)