google / benchmark

A microbenchmark support library
Apache License 2.0
8.59k stars 1.57k forks source link

[NFC] `complexity_n` is not of `IterationCount` type #1709

Closed LebedevRI closed 6 months ago

LebedevRI commented 6 months ago

There is no bug here, but it gave me a scare the other day. It is not incorrect to use IterationCount here, since it's just an int64_t either way, but it's wildly confusing. Let's not do that.

dmah42 commented 6 months ago

nice catch. i completely missed that.

LebedevRI commented 6 months ago

@dmah42 thank you.