diff --git a/patches/bn.js+5.2.0.patch b/patches/bn.js+5.2.0.patch index ee621a0a105..c7d2b14588f 100644 --- a/patches/bn.js+5.2.0.patch +++ b/patches/bn.js+5.2.0.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/bn.js/lib/bn.js b/node_modules/bn.js/lib/bn.js -index c9773da..46f3dcd 100644 +index c9773da..0045880 100644 --- a/node_modules/bn.js/lib/bn.js +++ b/node_modules/bn.js/lib/bn.js @@ -2632,7 +2632,7 @@ @@ -7,7 +7,7 @@ index c9773da..46f3dcd 100644 if (i > 0) { x.iushrn(i); - while (i-- > 0) { -+ while (i--, i > 0) { ++ while ([i--][0] > 0) { if (A.isOdd() || B.isOdd()) { A.iadd(yp); B.isub(xp); @@ -16,7 +16,7 @@ index c9773da..46f3dcd 100644 if (j > 0) { y.iushrn(j); - while (j-- > 0) { -+ while (j--, j > 0) { ++ while ([j--][0] > 0) { if (C.isOdd() || D.isOdd()) { C.iadd(yp); D.isub(xp); @@ -25,7 +25,7 @@ index c9773da..46f3dcd 100644 if (i > 0) { a.iushrn(i); - while (i-- > 0) { -+ while (i--, i > 0) { ++ while ([i--][0] > 0) { if (x1.isOdd()) { x1.iadd(delta); } @@ -34,7 +34,7 @@ index c9773da..46f3dcd 100644 if (j > 0) { b.iushrn(j); - while (j-- > 0) { -+ while (j--, j > 0) { ++ while ([j--][0] > 0) { if (x2.isOdd()) { x2.iadd(delta); }