From 1aefb43a48b1cb64caed862c826a145bc21b8a80 Mon Sep 17 00:00:00 2001 From: Aaryaman Sagar Date: Wed, 24 Aug 2016 12:05:17 -0400 Subject: [PATCH] Added missing static_cast --- 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 d834fe2..fb17059 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 = main_part.length(); + int chars_left = static_cast(main_part.length()); string final_string = ""; int chars_in_line = 0; // how many chars in current line so far? while (1) {