未验证 提交 91059871 编写于 作者: X Xiaoyang LI 提交者: GitHub

fix ios build error, test=develop (#2222)

上级 7ba2834e
...@@ -1109,7 +1109,8 @@ void DeviceInfo::SetCache(int l1size, int l2size, int l3size) { ...@@ -1109,7 +1109,8 @@ void DeviceInfo::SetCache(int l1size, int l2size, int l3size) {
} }
bool DeviceInfo::ExtendWorkspace(size_t size) { bool DeviceInfo::ExtendWorkspace(size_t size) {
workspace_.Resize({size + llc_size()}); workspace_.Resize(
{static_cast<int64_t>(size + static_cast<size_t>(llc_size()))});
return workspace_.mutable_data<int8_t>() != nullptr; return workspace_.mutable_data<int8_t>() != nullptr;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册