Fix u32::MAX not found error
Using std::u32 instead of u32 passes the compilation.
This commit is contained in:
parent
e651be4403
commit
aa10d96f89
@ -120,12 +120,9 @@ impl InnerAgent {
|
|||||||
Some(sigrl) => {
|
Some(sigrl) => {
|
||||||
let sigrl_ptr = sigrl.as_ptr();
|
let sigrl_ptr = sigrl.as_ptr();
|
||||||
let sigrl_size = {
|
let sigrl_size = {
|
||||||
// FIXME: u32::MAX is not provided by Rust SGX SDK
|
if sigrl.len() > std::u32::MAX as usize {
|
||||||
/*
|
|
||||||
if sigrl.len() > u32::MAX {
|
|
||||||
return_errno!(EINVAL, "sigrl is too large");
|
return_errno!(EINVAL, "sigrl is too large");
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
sigrl.len() as u32
|
sigrl.len() as u32
|
||||||
};
|
};
|
||||||
(sigrl_ptr, sigrl_size)
|
(sigrl_ptr, sigrl_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user