From 6c339d8aab380a191fe3fce7ca7dc7c09e252ebd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 1 Jan 2023 15:48:43 +0100 Subject: Tests and coverage on gcc and clang --- whiteboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whiteboard.cpp') diff --git a/whiteboard.cpp b/whiteboard.cpp index 2718937..cebd0b1 100644 --- a/whiteboard.cpp +++ b/whiteboard.cpp @@ -38,7 +38,7 @@ namespace { uint32_t checksum32(const std::string& s) { uint32_t result{0}; - for (int i = 0; i < s.size(); i++) { + for (unsigned int i = 0; i < s.size(); i++) { result = ((result >> 1) | ((result & 1) << 31)) ^ (s[i] & 0xFF); } return result & 0x7FFFFFFF; -- cgit v1.2.3