mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
test more
This commit is contained in:
@@ -36,10 +36,10 @@ struct axis_visitor : public static_visitor<python::object>
|
||||
};
|
||||
|
||||
python::object
|
||||
histogram_axis(const dynamic_histogram<>& self, unsigned i)
|
||||
histogram_axis(const dynamic_histogram<>& self, int i)
|
||||
{
|
||||
if (i < 0) i += self.dim();
|
||||
if (i < 0 || i >= self.dim()) {
|
||||
if (i < 0 || i >= int(self.dim())) {
|
||||
PyErr_SetString(PyExc_IndexError, "axis index out of range");
|
||||
python::throw_error_already_set();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user