chiark
/
gitweb
/
~mdw
/
rhodes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fb3f7e
)
rhodes: Don't try to CRT-recombine a single log.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 28 May 2017 18:03:08 +0000
(19:03 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 19 Jun 2017 09:28:47 +0000
(10:28 +0100)
This is, properly speaking, a catacomb-python bug, I think.
rhodes
patch
|
blob
|
blame
|
history
diff --git
a/rhodes
b/rhodes
index 092e97a5774f975746368b6b11a6f8e3565ad768..81529997dc9356c955c36aa33f8ec1914930db9f 100755
(executable)
--- a/
rhodes
+++ b/
rhodes
@@
-490,7
+490,8
@@
def step(dir, cmd, *args):
p, n = C.MP(pstr), C.MP(nstr)
qq.append(p**e)
nn.append(n)
p, n = C.MP(pstr), C.MP(nstr)
qq.append(p**e)
nn.append(n)
- n = C.MPCRT(qq).solve(nn)
+ if len(qq) == 1: n = nn[0]
+ else: n = C.MPCRT(qq).solve(nn)
## One last check that this is the right answer.
xx = G.pow(g, n)
## One last check that this is the right answer.
xx = G.pow(g, n)