Fix u32::MAX not found error

Using std::u32 instead of u32 passes the compilation.
This commit is contained in:
He Sun 2020-04-26 14:03:58 +08:00 committed by Tate, Hongliang Tian
parent e651be4403
commit aa10d96f89

@ -120,12 +120,9 @@ impl InnerAgent {
Some(sigrl) => {
let sigrl_ptr = sigrl.as_ptr();
let sigrl_size = {
// FIXME: u32::MAX is not provided by Rust SGX SDK
/*
if sigrl.len() > u32::MAX {
if sigrl.len() > std::u32::MAX as usize {
return_errno!(EINVAL, "sigrl is too large");
}
*/
sigrl.len() as u32
};
(sigrl_ptr, sigrl_size)