Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
7d31c02d
Commit
7d31c02d
authored
Aug 24, 2016
by
Aaryaman Sagar
Committed by
Andreas Schuh
Aug 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unsigned comparison error in gflags_reporting.cc (#168)
parent
a69b2544
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
gflags_reporting.cc
src/gflags_reporting.cc
+2
-1
No files found.
src/gflags_reporting.cc
View file @
7d31c02d
...
@@ -126,7 +126,8 @@ string DescribeOneFlag(const CommandLineFlagInfo& flag) {
...
@@ -126,7 +126,8 @@ string DescribeOneFlag(const CommandLineFlagInfo& flag) {
string
final_string
=
""
;
string
final_string
=
""
;
int
chars_in_line
=
0
;
// how many chars in current line so far?
int
chars_in_line
=
0
;
// how many chars in current line so far?
while
(
1
)
{
while
(
1
)
{
assert
(
chars_left
==
strlen
(
c_string
));
// Unless there's a \0 in there?
assert
(
static_cast
<
size_t
>
(
chars_left
)
==
strlen
(
c_string
));
// Unless there's a \0 in there?
const
char
*
newline
=
strchr
(
c_string
,
'\n'
);
const
char
*
newline
=
strchr
(
c_string
,
'\n'
);
if
(
newline
==
NULL
&&
chars_in_line
+
chars_left
<
kLineLength
)
{
if
(
newline
==
NULL
&&
chars_in_line
+
chars_left
<
kLineLength
)
{
// The whole remainder of the string fits on this line
// The whole remainder of the string fits on this line
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment