Skip to content

Commit

Permalink
return status in bytesToBool
Browse files Browse the repository at this point in the history
  • Loading branch information
kboroszko committed Nov 29, 2021
1 parent 9b1489d commit d15dbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_io/core/kernels/bigtable/serialization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace tensorflow {
namespace io {
namespace {

#ifdef _WIN32
#ifdef __linux__

#include <winsock.h>

Expand Down Expand Up @@ -53,7 +53,7 @@ inline StatusOr<int64_t> BytesToInt64(const cbt::Cell& cell) {
inline StatusOr<bool_t> BytesToBool(const cbt::Cell& cell) {
auto const int_rep = BytesToInt32(cell);
if (!int_rep.ok()) {
return int_rep;
return int_rep.status();
}
union {
bool_t res;
Expand Down

0 comments on commit d15dbe4

Please sign in to comment.