mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-20 04:11:36 +08:00
@@ -853,7 +853,7 @@ testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) {
|
||||
return -1;
|
||||
}
|
||||
assert(result >= 0);
|
||||
if (result > (unsigned int)INT16_MAX)
|
||||
if ((unsigned int)result > (unsigned int)INT16_MAX)
|
||||
return -1;
|
||||
return (int)result;
|
||||
}
|
||||
@@ -1032,4 +1032,4 @@ int qrcodegen_version2size(int version)
|
||||
}
|
||||
|
||||
return ((version - 1)*4 + 21);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user