[Bf-blender-cvs] [f2b86471eaa] master: Fix session uuid ghash comparison return value
Sebastian Parborg
noreply at git.blender.org
Mon Oct 4 11:55:15 CEST 2021
Commit: f2b86471eaa48f09f534195c7b1095f85e2b7ff8
Author: Sebastian Parborg
Date: Mon Oct 4 11:53:12 2021 +0200
Branches: master
https://developer.blender.org/rBf2b86471eaa48f09f534195c7b1095f85e2b7ff8
Fix session uuid ghash comparison return value
Because of legacy reasons (C string compare function returning 0 when
strings are equal), the ghash compare function is expected to return
false when hashes are equal.
===================================================================
M source/blender/blenlib/intern/session_uuid.c
===================================================================
diff --git a/source/blender/blenlib/intern/session_uuid.c b/source/blender/blenlib/intern/session_uuid.c
index 8ed96f02149..ac15a400a92 100644
--- a/source/blender/blenlib/intern/session_uuid.c
+++ b/source/blender/blenlib/intern/session_uuid.c
@@ -74,5 +74,5 @@ bool BLI_session_uuid_ghash_compare(const void *lhs_v, const void *rhs_v)
{
const SessionUUID *lhs = (const SessionUUID *)lhs_v;
const SessionUUID *rhs = (const SessionUUID *)rhs_v;
- return BLI_session_uuid_is_equal(lhs, rhs);
+ return !BLI_session_uuid_is_equal(lhs, rhs);
}
More information about the Bf-blender-cvs
mailing list