mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
fix build
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <boost/variant/static_visitor.hpp>
|
||||
#ifdef HAVE_NUMPY
|
||||
#include <boost/python/numpy.hpp>
|
||||
namespace np = boost::python::numpy;
|
||||
#endif
|
||||
#include <memory>
|
||||
|
||||
@@ -25,8 +26,6 @@
|
||||
#define BOOST_HISTOGRAM_AXIS_LIMIT 32
|
||||
#endif
|
||||
|
||||
namespace np = boost::python::numpy;
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace histogram {
|
||||
@@ -99,7 +98,7 @@ public:
|
||||
list strides;
|
||||
auto &b = self.storage_.buffer_;
|
||||
d["typestr"] = apply_visitor(dtype_visitor(shapes, strides), b);
|
||||
for (unsigned i = 0; i < self.dim(); ++i) {
|
||||
for (auto i = 0u; i < self.dim(); ++i) {
|
||||
if (i) strides.append(strides[-1] * shapes[-1]);
|
||||
shapes.append(histogram::shape(self.axis(i)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user