Skip to content

Commit 6b37f9f

Browse files
committed
Fix potential overflow
1 parent 2651114 commit 6b37f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform/AliasCodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool AliasCodec::forward(SliceArray<byte>& input, SliceArray<byte>& output, int
210210
}
211211

212212
// Worth it?
213-
if (savings * 20 < count)
213+
if (savings < count / 20)
214214
return false;
215215

216216
v.clear();

0 commit comments

Comments
 (0)