FIX

parent 023dbb3c
...@@ -78,7 +78,7 @@ pub mod uic{ ...@@ -78,7 +78,7 @@ pub mod uic{
static ref UIC : [AtomicF64; MAX_UIC_MEMOIZATION] = { static ref UIC : [AtomicF64; MAX_UIC_MEMOIZATION] = {
let mut result : [AtomicF64; MAX_UIC_MEMOIZATION] = unsafe { std::mem::uninitialized() }; let mut result : [AtomicF64; MAX_UIC_MEMOIZATION] = unsafe { std::mem::uninitialized() };
for i in 0..MAX_UIC_MEMOIZATION { for i in 0..MAX_UIC_MEMOIZATION {
let uninit = std::mem::replace(result.get_mut(i).unwrap(), AtomicF64::new(0.0)); let uninit = std::mem::replace(&mut result[i], AtomicF64::new(0.0));
std::mem::forget(uninit) std::mem::forget(uninit)
}; };
result result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment