Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
534afc59
Commit
534afc59
authored
Apr 27, 2016
by
Tomasz Wasilczyk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -Wsign-compare warnings
parent
bd9cd96e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+4
-4
No files found.
protobuf-c/protobuf-c.c
View file @
534afc59
...
@@ -285,13 +285,13 @@ int32_size(int32_t v)
...
@@ -285,13 +285,13 @@ int32_size(int32_t v)
{
{
if
(
v
<
0
)
{
if
(
v
<
0
)
{
return
10
;
return
10
;
}
else
if
(
v
<
(
1
U
L
<<
7
))
{
}
else
if
(
v
<
(
1L
<<
7
))
{
return
1
;
return
1
;
}
else
if
(
v
<
(
1
U
L
<<
14
))
{
}
else
if
(
v
<
(
1L
<<
14
))
{
return
2
;
return
2
;
}
else
if
(
v
<
(
1
U
L
<<
21
))
{
}
else
if
(
v
<
(
1L
<<
21
))
{
return
3
;
return
3
;
}
else
if
(
v
<
(
1
U
L
<<
28
))
{
}
else
if
(
v
<
(
1L
<<
28
))
{
return
4
;
return
4
;
}
else
{
}
else
{
return
5
;
return
5
;
...
...
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