Skip to content

Commit

Permalink
Fix MSBuild warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jun 30, 2021
1 parent c249f25 commit 85f88c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wrappers/src/object_cs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ extern "C" {
REALM_EXPORT int32_t object_get_hashcode(const Object& object, NativeException::Marshallable& ex)
{
return handle_errors(ex, [&]() {
auto table_key_value = object.obj().get_table()->get_key().value;
auto object_key_value = object.obj().get_key().value;
int32_t table_key_value = object.obj().get_table()->get_key().value;
int32_t object_key_value = object.obj().get_key().value;

int32_t hashCode = -9999999769;
hashCode = (hashCode * -1234570003) + table_key_value;
hashCode = (hashCode * -5164898681) + object_key_value;
int32_t hashCode = -986587137;
hashCode = (hashCode * -1521134295) + table_key_value;
hashCode = (hashCode * -1521134295) + object_key_value;
return hashCode;
});
}
Expand Down

0 comments on commit 85f88c5

Please sign in to comment.