diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-01 15:48:43 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-01 15:48:43 +0100 |
commit | 6c339d8aab380a191fe3fce7ca7dc7c09e252ebd (patch) | |
tree | ca5a1288fcbc5299b5bf5cc28d012a5bd6147549 /whiteboard.cpp | |
parent | cbf1ba38794ab6a323441dcc3b0e5e942f7ab386 (diff) |
Tests and coverage on gcc and clang
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r-- | whiteboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |