Commit e66aea59 authored by Brennan Saeta's avatar Brennan Saeta Committed by TensorFlower Gardener
Browse files

[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
parent baf8945f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment