From 3b185f288241d32ed143140c65710df5b3c5d7d8 Mon Sep 17 00:00:00 2001 From: Aaryaman Sagar Date: Wed, 24 Aug 2016 00:15:28 -0400 Subject: [PATCH] Fix unsigned comparison error in gflags_reporting.cc --- src/gflags_reporting.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gflags_reporting.cc b/src/gflags_reporting.cc index 9cc41a7..7f49935 100644 --- a/src/gflags_reporting.cc +++ b/src/gflags_reporting.cc @@ -122,7 +122,7 @@ string DescribeOneFlag(const CommandLineFlagInfo& flag) { flag.name.c_str(), flag.description.c_str()); const char* c_string = main_part.c_str(); - int chars_left = static_cast(main_part.length()); + size_t chars_left = main_part.length(); string final_string = ""; int chars_in_line = 0; // how many chars in current line so far? while (1) {