util: style changes.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Christopher Jeffrey 2014-05-18 13:25:00 -05:00 committed by Fedor Indutny
parent 84b53a049d
commit 615292de46

View File

@ -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;