diff --git a/host/smartperf/client/client_command/CPU.cpp b/host/smartperf/client/client_command/CPU.cpp index 5f76871ec..8517f5b2e 100644 --- a/host/smartperf/client/client_command/CPU.cpp +++ b/host/smartperf/client/client_command/CPU.cpp @@ -123,7 +123,7 @@ float CPU::CacWorkload(const char *buffer, const char *preBuffer) const if (preLen == 0 || len == 0) { return -1.0f; } - int i; + size_t i; size_t time[defaultShift]; size_t preTime[defaultShift]; size_t cnt = 0;