aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/resize_bicubic_op.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-30 10:40:39 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-30 10:45:09 -0700
commit81755953863f36f13d1c70a108469b0c3f5fa697 (patch)
tree208c244cd48aaea158b09464598bb348fe9d71f2 /tensorflow/core/kernels/resize_bicubic_op.cc
parent2bb9fe8d202b2400219d45a8a2185a02dd070fb5 (diff)
Internal change
PiperOrigin-RevId: 198582954
Diffstat (limited to 'tensorflow/core/kernels/resize_bicubic_op.cc')
-rw-r--r--tensorflow/core/kernels/resize_bicubic_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/resize_bicubic_op.cc b/tensorflow/core/kernels/resize_bicubic_op.cc
index 65014b6c44..8380ed6d8f 100644
--- a/tensorflow/core/kernels/resize_bicubic_op.cc
+++ b/tensorflow/core/kernels/resize_bicubic_op.cc
@@ -57,7 +57,7 @@ const float* GetCoeffsTable() {
}
inline int64 Bound(int64 val, int64 limit) {
- return std::min(limit - 1ll, std::max(0ll, val));
+ return std::min(limit - 1ll, std::max(int64{0}, val));
}
struct WeightsAndIndices {