diff --git a/ports/c/builder.js b/ports/c/builder.js index 6ffbdce..e8460a9 100644 --- a/ports/c/builder.js +++ b/ports/c/builder.js @@ -504,7 +504,7 @@ class BuilderC { function addShortMontgomeryNegative(a) { - const b = a.minus(self.header.P); + const b = self.F.neg(a); return `${b.toString()}, 0x40000000, { ${getLongString(toMontgomery(a))} }`; }