Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tf.data / Cloud Bigtable]: Avoid underflow.
Previously, because the size_t type is unsigned, if keys_.empty(), we would underflow, instead of returning end_of_sequence, resulting in a runtime crash. This change switches around the arithmetic so that it's robust to underflow. PiperOrigin-RevId: 219062746
- Loading branch information