| 1 | |
| 2 | |
| 3 | |
| 4 | uint64_t bufferNum = 0; |
| 5 | if constexpr (isLittleEndian && std::is_same_v<ValueType, ItemType>) { |
| 6 | bufferNum = |
| 7 | - std::min(numValues, static_cast<size_t>(bufferEnd_ - bufferPointer_) / bytesPerValue_); |
| 8 | + std::min(numValues, static_cast<uint64_t>(bufferEnd_ - bufferPointer_) / static_cast<uint64_t>(bytesPerValue_)); |
| 9 | uint64_t bufferBytes = bufferNum * bytesPerValue_; |
| 10 | if (bufferBytes > 0) { |
| 11 | memcpy(outArray, bufferPointer_, bufferBytes); |