From a8e2d3f051a14040285218b0d1522b58bba5d9f3 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 12 Mar 2024 19:30:01 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 417aeb99..4601f3f0 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -60,7 +60,7 @@ public: hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp); token = strpool_inject(&_strpool,val_.c_str(),val_.size()); ptr = strpool_cstr(&_strpool,token); - _cache.insert_or_assign(hash,val_); + _cache.insert_or_assign(hash,ptr); fmt::print("insert {}={} token={} ptr={}\n", key_,