diff --git a/src/cycleclock.h b/src/cycleclock.h index 03e02f80..3951ff35 100644 --- a/src/cycleclock.h +++ b/src/cycleclock.h @@ -219,7 +219,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { #elif defined(__hexagon__) uint64_t pcycle; asm volatile("%0 = C15:14" : "=r"(pcycle)); - return static_cast(pcycle); + return static_cast(pcycle); #elif defined(__alpha__) // Alpha has a cycle counter, the PCC register, but it is an unsigned 32-bit // integer and thus wraps every ~4s, making using it for tick counts diff --git a/src/sysinfo.cc b/src/sysinfo.cc index b57dd89f..c938b360 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -509,7 +509,7 @@ int GetNumCPUsImpl() { if (qurt_sysenv_get_max_hw_threads(&hardware_threads) != QURT_EOK) { hardware_threads.max_hthreads = 1; } - return hardware_threads.max_hthreads; + return static_cast(hardware_threads.max_hthreads); #elif defined(BENCHMARK_HAS_SYSCTL) // *BSD, macOS int num_cpu = -1;