| 1455 | |
| 1456 | template <typename T> |
| 1457 | T GetMaxIndex(int64_t values_length) { |
| 1458 | int64_t max_index = values_length - 1; |
| 1459 | if (max_index > static_cast<int64_t>(std::numeric_limits<T>::max())) { |
| 1460 | max_index = std::numeric_limits<T>::max(); |
| 1461 | } |
| 1462 | return static_cast<T>(max_index); |
| 1463 | } |
| 1464 | |
| 1465 | template <> |
| 1466 | uint64_t GetMaxIndex(int64_t values_length) { |
nothing calls this directly
no outgoing calls
no test coverage detected