mirror of
https://github.com/google/benchmark.git
synced 2025-03-10 17:20:06 +08:00
Modified check for range multiplier
This commit is contained in:
parent
c60eefdbb7
commit
d2103de3d3
@ -505,7 +505,6 @@ void BenchmarkImp::RangePair(int lo1, int hi1, int lo2, int hi2) {
|
||||
}
|
||||
|
||||
void BenchmarkImp::RangeMultiplier(int multiplier) {
|
||||
CHECK_GE(multiplier, 2);
|
||||
range_multiplier_ = multiplier;
|
||||
}
|
||||
|
||||
@ -548,6 +547,7 @@ void BenchmarkImp::SetName(const char* name) {
|
||||
void BenchmarkImp::AddRange(std::vector<int>* dst, int lo, int hi, int mult) {
|
||||
CHECK_GE(lo, 0);
|
||||
CHECK_GE(hi, lo);
|
||||
CHECK_GE(mult, 2);
|
||||
|
||||
// Add "lo"
|
||||
dst->push_back(lo);
|
||||
|
Loading…
Reference in New Issue
Block a user