Skip to content

Commit

Permalink
Merge pull request sass#653 from xzyfer/feat/maps-speed-boost
Browse files Browse the repository at this point in the history
Fix bug with map key caching
  • Loading branch information
xzyfer committed Nov 17, 2014
2 parents 6a548bf + 19783ad commit 3e38944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1302,9 +1302,9 @@ namespace Sass {
}
}

virtual size_t hash() const
virtual size_t hash()
{
if (hash_ == 0) std::hash<string>()(unquoted_);
if (hash_ == 0) hash_ = std::hash<string>()(unquoted_);
return hash_;
}

Expand Down

0 comments on commit 3e38944

Please sign in to comment.