Skip to content

Commit

Permalink
fix rules cache
Browse files Browse the repository at this point in the history
  • Loading branch information
trethaller committed Mar 4, 2022
1 parent db7c1ee commit 5e28524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion domkit/CssStyle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ abstract BytesMap<T>(Map<Int,BytesCell<T>>) {

inline function makeHash( bytes : hl.Bytes, len : Int ) {
var buf = BUF;
buf.fill(0, 4, 0);
hl.Format.digest(buf,bytes,len,3);
return buf.getI32(0);
}
Expand Down Expand Up @@ -156,7 +157,7 @@ class CssData {
}
bytesSize = -1;
}
var reqSize = (CssData.CID + 7) & ~7;
var reqSize = (CssData.CID >> 3) + 1;
if( reqSize > bytesSize ) {
bytesSize = reqSize;
rulesByComp = #if hl new BytesMap() #else new Map() #end;
Expand Down

0 comments on commit 5e28524

Please sign in to comment.