File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " ic-wasi-polyfill"
3- version = " 0.9.0 "
3+ version = " 0.9.1 "
44edition = " 2021"
55keywords = [" ic" , " wasi" , " wasi-polyfill" ]
66description = " The project provides polyfill implementation of *wasi_snapshot_preview1* functions using IC System API."
Original file line number Diff line number Diff line change @@ -1012,7 +1012,11 @@ pub unsafe extern "C" fn __ic_custom_fd_readdir(
10121012
10131013 #[ cfg( feature = "report_wasi_calls" ) ]
10141014 {
1015- let mn = std:: cmp:: min ( std:: cmp:: min ( bytes_len as usize , unsafe { * res } ) , 50 ) ;
1015+ let mn = std:: cmp:: min (
1016+ std:: cmp:: min ( bytes_len as usize , unsafe { * res } as usize ) ,
1017+ 50 ,
1018+ ) ;
1019+
10161020 let buf = unsafe { std:: slice:: from_raw_parts_mut ( bytes, mn) } ;
10171021
10181022 let t = format ! ( "buf={buf:?}... res={}" , unsafe { * res } ) ;
You can’t perform that action at this time.
0 commit comments