fix build

This commit is contained in:
Hans Dembinski
2017-11-03 00:21:27 +01:00
parent e12856b03d
commit d4cee3ba99
2 changed files with 3 additions and 4 deletions

View File

@@ -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)));
}