diff --git a/src/cycleclock.h b/src/cycleclock.h index c657414e56..bd62f5d7e7 100644 --- a/src/cycleclock.h +++ b/src/cycleclock.h @@ -210,7 +210,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { #else uint64_t cycles; asm volatile("rdtime %0" : "=r"(cycles)); - return cycles; + return static_cast(cycles); #endif #elif defined(__e2k__) || defined(__elbrus__) struct timeval tv;