aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/cancellation.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-09-01 13:05:00 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-09-01 13:09:00 -0700
commit1196fbc824b45679cba9fae8daa35cc6c02d3599 (patch)
tree02c40f8a7d9c3889293921da0c6f7238ca492761 /tensorflow/core/framework/cancellation.cc
parent9fe71e08a56035dd547f7f9e9f7fdc0b093d0c96 (diff)
Use boolean literals where appropriate instead of narrowing ints
PiperOrigin-RevId: 167314054
Diffstat (limited to 'tensorflow/core/framework/cancellation.cc')
-rw-r--r--tensorflow/core/framework/cancellation.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/framework/cancellation.cc b/tensorflow/core/framework/cancellation.cc
index 1cbed62939..9da4828bba 100644
--- a/tensorflow/core/framework/cancellation.cc
+++ b/tensorflow/core/framework/cancellation.cc
@@ -23,7 +23,9 @@ namespace tensorflow {
const CancellationToken CancellationManager::kInvalidToken = -1;
CancellationManager::CancellationManager()
- : is_cancelling_(false), is_cancelled_(0), next_cancellation_token_(0) {}
+ : is_cancelling_(false),
+ is_cancelled_(false),
+ next_cancellation_token_(0) {}
void CancellationManager::StartCancel() {
gtl::FlatMap<CancellationToken, CancelCallback> callbacks_to_run;