mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
fix typo
This commit is contained in:
parent
bd61dff342
commit
05f6eecd45
9
index.js
9
index.js
@ -357,8 +357,8 @@ class Fuse extends Nanoresource {
|
||||
}
|
||||
|
||||
_op_utimens (signal, path, atimeLow, atimeHigh, mtimeLow, mtimeHigh) {
|
||||
const atime = getDoubleInt(atimeLow, atimeHigh)
|
||||
const mtime = getDoubleInt(mtimeLow, mtimeHigh)
|
||||
const atime = getDoubleArg(atimeLow, atimeHigh)
|
||||
const mtime = getDoubleArg(mtimeLow, mtimeHigh)
|
||||
this.ops.utimens(path, atime, mtime, err => {
|
||||
return signal(err)
|
||||
})
|
||||
@ -706,11 +706,6 @@ function setDoubleInt (arr, idx, num) {
|
||||
arr[idx + 1] = (num - arr[idx]) / 4294967296
|
||||
}
|
||||
|
||||
function getDoubleInt (arr, idx) {
|
||||
arr = new Uint32Array(arr)
|
||||
return arr[idx] + arr[idx + 1] * 4294967296
|
||||
}
|
||||
|
||||
function getDoubleArg (a, b) {
|
||||
return a + b * 4294967296
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user