Commit 534afc59 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk

Fix -Wsign-compare warnings

parent bd9cd96e
...@@ -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 < (1UL << 7)) { } else if (v < (1L << 7)) {
return 1; return 1;
} else if (v < (1UL << 14)) { } else if (v < (1L << 14)) {
return 2; return 2;
} else if (v < (1UL << 21)) { } else if (v < (1L << 21)) {
return 3; return 3;
} else if (v < (1UL << 28)) { } else if (v < (1L << 28)) {
return 4; return 4;
} else { } else {
return 5; return 5;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment