diff options
author | Patrick Nguyen <drpng@google.com> | 2017-06-19 10:27:47 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-19 10:31:41 -0700 |
commit | affc8b084284125ac366d53b63dda7f57eb2d12a (patch) | |
tree | ffa4ae0aaccaf21322aa6a3ec942b049f11be8af /tensorflow/core/lib/strings/strcat.cc | |
parent | 5479240a00e904b0f05fa4ae3760cb4deedb864c (diff) |
Fix warnings.
Fixes #9138.
* lstm_ops: use_peephole checked twice, merged "if" bodies.
* unpack_path_op: cast to 1LL for shift to operate on full range.
* sample_input_ops: add CHECK to ensure that sparse_input_start is
initialized.
* function: make sure we deref "e" after checking for nullptr
* master_session: remove unused variable
* encode_jpeg_op: remove double assignment
* resize_area_op: use unused variable
* strcat: remove double parentheses
PiperOrigin-RevId: 159443547
Diffstat (limited to 'tensorflow/core/lib/strings/strcat.cc')
-rw-r--r-- | tensorflow/core/lib/strings/strcat.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/lib/strings/strcat.cc b/tensorflow/core/lib/strings/strcat.cc index 3e864c4f28..46a45a6678 100644 --- a/tensorflow/core/lib/strings/strcat.cc +++ b/tensorflow/core/lib/strings/strcat.cc @@ -38,7 +38,7 @@ AlphaNum::AlphaNum(Hex hex) { // We accomplish minimum width by OR'ing in 0x10000 to the user's value, // where 0x10000 is the smallest hex number that is as wide as the user // asked for. - uint64 mask = ((static_cast<uint64>(1) << (width - 1) * 4)) | value; + uint64 mask = (static_cast<uint64>(1) << (width - 1) * 4) | value; static const char hexdigits[] = "0123456789abcdef"; do { *--writer = hexdigits[value & 0xF]; |