From 36dcb0ada7b4ed1df13c4dab186f24d61f9d7d86 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Wed, 26 Jul 2023 16:05:11 +0200 Subject: [PATCH] LibWeb: Use int-hash for CSSPixels --- Userland/Libraries/LibWeb/PixelUnits.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/PixelUnits.h b/Userland/Libraries/LibWeb/PixelUnits.h index ca432a5fe5..0b678f8963 100644 --- a/Userland/Libraries/LibWeb/PixelUnits.h +++ b/Userland/Libraries/LibWeb/PixelUnits.h @@ -283,8 +283,7 @@ template<> struct Traits : public GenericTraits { static unsigned hash(Web::CSSPixels const& key) { - VERIFY(isfinite(key.to_double())); - return Traits::hash(key.to_double()); + return Traits::hash(key.raw_value()); } static bool equals(Web::CSSPixels const& a, Web::CSSPixels const& b)