Skip to content

Commit

Permalink
Fix numbers with different units used for hash keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Nov 4, 2015
1 parent b1b22b0 commit 7d99d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,10 @@ namespace Sass {
{
if (hash_ == 0) {
hash_ = std::hash<double>()(value_);
for (const auto numerator : numerator_units())
hash_combine(hash_, std::hash<std::string>()(numerator));
for (const auto denominator : denominator_units())
hash_combine(hash_, std::hash<std::string>()(denominator));
}
return hash_;
}
Expand Down

0 comments on commit 7d99d43

Please sign in to comment.