Skip to content

Commit 934c5f3

Browse files
committed
clang tidy
1 parent 7984db7 commit 934c5f3

File tree

1 file changed

+3
-3
lines changed
  • keyvi/include/keyvi/util

1 file changed

+3
-3
lines changed

keyvi/include/keyvi/util/vint.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ void encodeVarShort(int_t value, uint16_t* output, size_t* output_size_ptr) {
7171
size_t output_size = 0;
7272
// While more than 15 bits of data are left, occupy the last output byte
7373
// and set the next byte flag
74-
while (value > 0x7FFFu) {
74+
while (value > 0x7FFF) {
7575
// |0x7FFFu: Set the next byte flag
7676
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
77-
output[output_size] = (static_cast<uint16_t>(value) & 0x7FFFu) | 0x8000u;
77+
output[output_size] = (static_cast<uint16_t>(value) & 0x7FFFU) | 0x8000U;
7878
// Remove the 15 bits we just wrote
7979
value >>= 15;
8080
output_size++;
8181
}
8282
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
83-
output[output_size++] = static_cast<uint16_t>(value) & 0x7FFFu;
83+
output[output_size++] = static_cast<uint16_t>(value) & 0x7FFFU;
8484
*output_size_ptr = output_size;
8585
}
8686

0 commit comments

Comments
 (0)