mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2025-01-14 01:07:57 +08:00
Fix -Wsign-compare warnings
This commit is contained in:
parent
bd9cd96e81
commit
534afc5997
@ -285,13 +285,13 @@ int32_size(int32_t v)
|
||||
{
|
||||
if (v < 0) {
|
||||
return 10;
|
||||
} else if (v < (1UL << 7)) {
|
||||
} else if (v < (1L << 7)) {
|
||||
return 1;
|
||||
} else if (v < (1UL << 14)) {
|
||||
} else if (v < (1L << 14)) {
|
||||
return 2;
|
||||
} else if (v < (1UL << 21)) {
|
||||
} else if (v < (1L << 21)) {
|
||||
return 3;
|
||||
} else if (v < (1UL << 28)) {
|
||||
} else if (v < (1L << 28)) {
|
||||
return 4;
|
||||
} else {
|
||||
return 5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user