diff --git a/lite/core/device_info.cc b/lite/core/device_info.cc index c150b2b1776a7978821286c3ca4e311e75c251a3..a494be563bc4eac133f95b1a389f3155c491bc18 100644 --- a/lite/core/device_info.cc +++ b/lite/core/device_info.cc @@ -1109,7 +1109,8 @@ void DeviceInfo::SetCache(int l1size, int l2size, int l3size) { } bool DeviceInfo::ExtendWorkspace(size_t size) { - workspace_.Resize({size + llc_size()}); + workspace_.Resize( + {static_cast(size + static_cast(llc_size()))}); return workspace_.mutable_data() != nullptr; }