From 05f6eecd457e28869b28b4547cfacdfbf8f78d5d Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Tue, 14 Jan 2020 16:55:06 +0100 Subject: [PATCH] fix typo --- index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 4b01df5..431530e 100644 --- a/index.js +++ b/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 }