summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r--whiteboard.cpp2
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;