1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools/fast: use delta*2 for operations that require a C compiler

This commit is contained in:
Alexander Medvednikov 2020-11-03 02:53:15 +01:00
parent 6cd0ff2b52
commit 6229965569

View File

@ -35,11 +35,11 @@ const delta = 20;
};
if (Math.abs(result.vc) > delta)
tr.children[vc].appendChild(createElement(result.vc));
if (Math.abs(result.vv) > delta)
if (Math.abs(result.vv) > delta * 2)
tr.children[vv].appendChild(createElement(result.vv));
if (Math.abs(result.vf) > delta)
if (Math.abs(result.vf) > delta * 2)
tr.children[vf].appendChild(createElement(result.vf));
if (Math.abs(result.vh) > delta)
if (Math.abs(result.vh) > delta * 2)
tr.children[vh].appendChild(createElement(result.vh));
}
});