util: style changes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
84b53a049d
commit
615292de46
@ -181,7 +181,8 @@ utils.writeU64 = function writeU64(dst, num, off) {
|
||||
off = 0;
|
||||
|
||||
num = new bn(num).maskn(64).toArray();
|
||||
while (num.length < 8) num.unshift(0);
|
||||
while (num.length < 8)
|
||||
num.unshift(0);
|
||||
|
||||
num.reverse().forEach(function(ch) {
|
||||
dst[off++] = ch;
|
||||
@ -213,7 +214,8 @@ utils.writeU64BE = function writeU64BE(dst, num, off) {
|
||||
off = 0;
|
||||
|
||||
num = new bn(num).maskn(64).toArray();
|
||||
while (num.length < 8) num.unshift(0);
|
||||
while (num.length < 8)
|
||||
num.unshift(0);
|
||||
|
||||
num.forEach(function(ch) {
|
||||
dst[off++] = ch;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user