From c53c3ae7cf445183b14d26f44490fa8eb1234284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Fri, 7 Sep 2018 22:29:54 +0200 Subject: [PATCH] Hash value issue with db::Text fixed. --- src/db/db/dbHash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/db/dbHash.h b/src/db/db/dbHash.h index 5729af952..3ac851a96 100644 --- a/src/db/db/dbHash.h +++ b/src/db/db/dbHash.h @@ -197,7 +197,8 @@ namespace std h = hfunc (int (o.valign ()), h); h = hfunc (o.trans ().rot (), h); h = hfunc (o.trans ().disp (), h); - h = hfunc (hfunc (o.string ()), h); + // NOTE: using std::string for the value makes sure the default hasher doesn't use the pointer value + h = hfunc (hfunc (std::string (o.string ())), h); return h; } };