Remove compilation warnings

This commit is contained in:
Léa Saviot
2019-01-24 13:38:50 +01:00
committed by Émilie Feral
parent 0ebfab773e
commit 79dc1dc2b9
4 changed files with 8 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ static inline int leading_ones(uint8_t value) {
value = value << 1;
}
assert(false);
return 0;
}
static inline uint8_t last_k_bits(uint8_t value, uint8_t bits) {
@@ -68,7 +69,7 @@ size_t UTF8Decoder::CharSizeOfCodePoint(CodePoint c) {
return 4;
}
size_t UTF8Decoder::CodePointToChars(CodePoint c, char * buffer, int bufferSize) {
size_t UTF8Decoder::CodePointToChars(CodePoint c, char * buffer, size_t bufferSize) {
if (bufferSize <= 0) {
return 0;
}