improve failing assert (#16581)

This commit is contained in:
Jeff Washington (jwash) 2021-04-19 08:55:01 -05:00 committed by GitHub
parent 1e638c1371
commit 015bc034a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -209,7 +209,12 @@ impl RollingBitField {
self.count == 0 self.count == 0
|| (self.max.saturating_sub(key) <= self.max_width as u64 || (self.max.saturating_sub(key) <= self.max_width as u64
&& key.saturating_sub(self.min) < self.max_width as u64), && key.saturating_sub(self.min) < self.max_width as u64),
"out of range" "out of range: count: {}, min: {}, max: {}, width: {}, key: {}",
self.count,
self.min,
self.max,
self.max_width,
key
); );
} }