From 329923c6accccf7d39b0ec954f8e3b8384bbe1bc Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 18 Jun 2022 16:14:08 +0300 Subject: Use custom key structs, instead of raw hashes for the Label3D and TextMesh, to avoid potential hash collisions. --- core/templates/lru.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/templates/lru.h b/core/templates/lru.h index 48ba318b12..55130cbeb0 100644 --- a/core/templates/lru.h +++ b/core/templates/lru.h @@ -35,7 +35,7 @@ #include "hash_map.h" #include "list.h" -template +template > class LRUCache { private: struct Pair { @@ -52,7 +52,7 @@ private: typedef typename List::Element *Element; List _list; - HashMap _map; + HashMap _map; size_t capacity; public: -- cgit v1.2.3