From c3a1e94e9afd57522c0e9bd8eb369dd273b0fbe5 Mon Sep 17 00:00:00 2001 From: tg-at-google Date: Tue, 2 Jun 2020 11:54:23 -0400 Subject: [PATCH] in resolution of [Wsign-compare] warning id 14 --- tensorflow/python/util/tf_stack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/util/tf_stack.cc b/tensorflow/python/util/tf_stack.cc index 5c18c87ad32..e530f490819 100644 --- a/tensorflow/python/util/tf_stack.cc +++ b/tensorflow/python/util/tf_stack.cc @@ -83,7 +83,7 @@ std::vector ExtractStack(ssize_t limit, const py::list& mappers, std::vector ret; // 16 is somewhat arbitrary, but TensorFlow stack traces tend to be deep. ret.reserve(limit < 0 ? 16 : static_cast(limit)); - for (; f != nullptr && (limit < 0 || ret.size() < limit); f = f->f_back) { + for (; f != nullptr && (limit < 0 || ret.size() < static_cast(limit)); f = f->f_back) { const PyCodeObject* co = f->f_code; int lineno = PyFrame_GetLineNumber(const_cast(f)); auto filename = py::reinterpret_borrow(co->co_filename);