mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
LibWeb: Use int-hash for CSSPixels
This commit is contained in:
parent
6c341ca985
commit
36dcb0ada7
|
@ -283,8 +283,7 @@ template<>
|
|||
struct Traits<Web::CSSPixels> : public GenericTraits<Web::CSSPixels> {
|
||||
static unsigned hash(Web::CSSPixels const& key)
|
||||
{
|
||||
VERIFY(isfinite(key.to_double()));
|
||||
return Traits<double>::hash(key.to_double());
|
||||
return Traits<int>::hash(key.raw_value());
|
||||
}
|
||||
|
||||
static bool equals(Web::CSSPixels const& a, Web::CSSPixels const& b)
|
||||
|
|
Loading…
Reference in a new issue