summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-08-15 18:00:26 +0200
committerJose <jose@zeroc.com>2019-08-15 18:00:26 +0200
commitbcbb90fa52534bf07e41182f1f970373721999e1 (patch)
treeca7b8a9389785b4fc2e2352a4be116d13c79690d /cpp/src/slice2objc/Gen.cpp
parentFix Swift IceSSL/configuration failures with macOS catalina (diff)
downloadice-bcbb90fa52534bf07e41182f1f970373721999e1.tar.bz2
ice-bcbb90fa52534bf07e41182f1f970373721999e1.tar.xz
ice-bcbb90fa52534bf07e41182f1f970373721999e1.zip
Fix objective-c signedness warning
Diffstat (limited to 'cpp/src/slice2objc/Gen.cpp')
-rw-r--r--cpp/src/slice2objc/Gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index 0416e69ee76..c11a95535cd 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -2096,7 +2096,7 @@ Slice::Gen::TypesVisitor::writeMemberHashCode(const DataMemberList& dataMembers,
}
else
{
- _M << nl << "h_ = ((h_ << 5) + h_) ^ " << name << ";";
+ _M << nl << "h_ = ((h_ << 5) + h_) ^ (uint)" << name << ";";
}
}
else