[Pkg-javascript-commits] [node-miller-rabin] 23/37: cli: do not print 1
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:20:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-miller-rabin.
commit 383fa63bde5bcde0c085b98275ae7f856afdbe57
Author: Fedor Indutny <fedor at indutny.com>
Date: Mon Apr 27 11:27:49 2015 +0200
cli: do not print 1
---
bin/miller-rabin | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/miller-rabin b/bin/miller-rabin
index ca10cc4..2e18dfd 100755
--- a/bin/miller-rabin
+++ b/bin/miller-rabin
@@ -22,6 +22,8 @@ function start(text) {
var divisor = mr.getDivisor(num);
if (!divisor)
process.exit(1);
+ if (divisor.cmpn(1) === 0)
+ process.exit(0);
console.log(divisor.toString(16));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-miller-rabin.git
More information about the Pkg-javascript-commits
mailing list