| 65 | } |
| 66 | |
| 67 | arrow::Status validateSliceLength(const int64_t length) { |
| 68 | if (length < 0) { |
| 69 | const std::string msg = "Slice length must be nonnegative"; |
| 70 | return arrow::Status::Invalid(std::move(msg)); |
| 71 | } |
| 72 | return arrow::Status::OK(); |
| 73 | } |
| 74 | } // namespace arrow::matlab::index |