mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cp: cast nNumberOfLinks to u64
This commit is contained in:
parent
c20ce9bf74
commit
83d25c0c70
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ fn preserve_hardlinks(hard_links: &mut Vec<(String, u64)>, source: &std::path::P
|
|||
return Err(format!("cannot get file information {:?}: {}", source, std::io::Error::last_os_error()).into());
|
||||
}
|
||||
inode = (((*stat).nFileIndexHigh as u64) << 32 | (*stat).nFileIndexLow as u64);
|
||||
nlinks = (*stat).nNumberOfLinks;
|
||||
nlinks = (*stat).nNumberOfLinks as u64;
|
||||
}
|
||||
|
||||
for hard_link in hard_links.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue