[apps/shared] Avoid signed/unsigned int comparison warning

This commit is contained in:
Émilie Feral
2020-04-06 13:34:31 +02:00
committed by LeaNumworks
parent e1d7b6bb04
commit 26aab94ac0

View File

@@ -34,7 +34,7 @@ void ExpressionModel::text(const Storage::Record * record, char * buffer, size_t
e = e.replaceSymbolWithExpression(Symbol::Builder(UCodePointUnknown), Symbol::Builder(symbol));
}
int serializedSize = e.serialize(buffer, bufferSize);
if (serializedSize >= bufferSize - 1) {
if (serializedSize >= (int)bufferSize - 1) {
// It is very likely that the buffer is overflowed
buffer[0] = 0;
}