From aefe9323387bd31efbd4761c770dd2e89e92af44 Mon Sep 17 00:00:00 2001 From: Xiaoyang LI Date: Mon, 21 Oct 2019 15:30:55 +0800 Subject: [PATCH] fix ios build error, test=develop (#2222) --- lite/core/device_info.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lite/core/device_info.cc b/lite/core/device_info.cc index c150b2b177..a494be563b 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; } -- GitLab