From 06ee1a3c78e8c035fc90bff7ff555745953d8eae Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sat, 1 May 2021 04:24:32 +0200 Subject: [PATCH] Fix warning: comparison between signed and unsigned integer expressions --- src/hasp/hasp_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp/hasp_parser.cpp b/src/hasp/hasp_parser.cpp index 28d88b58..16d9c849 100644 --- a/src/hasp/hasp_parser.cpp +++ b/src/hasp/hasp_parser.cpp @@ -177,7 +177,7 @@ int Parser::format_bytes(size_t filesize, char* buf, size_t len) filesize = filesize * 10 / 1024; // multiply by 10 for 1 decimal place int unit = 0; - while(filesize >= 10240 && unit < sizeof(labels) - 1) { // it is multiplied by 10 + while(filesize >= 10240 && unit < (sizeof(labels) - 1)) { // it is multiplied by 10 unit++; filesize = filesize / 1024; }