1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-12 20:41:14 +08:00

Fixed double to float warning.

This commit is contained in:
Anton Danielsson 2015-10-05 14:31:56 +02:00
parent e7f6c42a79
commit 2589e69e05

View File

@ -150,7 +150,7 @@ WallTime WallTimeImp::Now() {
// We are now sure that "now" and "result" were produced within
// kMaxErrorInterval of one another.
SetDrift(now - result);
SetDrift(static_cast<float>(now - result));
last_adjust_time_ = top_bits;
return now;
}