Found with modernize-use-bool-literals
Signed-off-by: Rosen Penev <rosenp@gmail.com>
uint8_t *const bufferEnd = library->mapping + library->length - 1;
unsigned int shift = 0;
- while(1) {
+ while(true) {
value |= (((static_cast<uint64_t>(buffer[i])) & UINT8_C(0x7F)) << shift);
shift += 7u;
goto fail;
}
- while(1) {
+ while(true) {
int32_t pointLat, pointLon;
int result = ZDReaderGetPoint(&reader, &pointLat, &pointLon);
if(result < 0) {
struct Reader reader;
ZDReaderInit(&reader, library, polygonIndex);
- while(1) {
+ while(true) {
int result = ZDReaderGetPoint(&reader, &pointLat, &pointLon);
if(result < 0) {
return ZD_LOOKUP_PARSE_ERROR;