Menu

#44 CRT does not work for one modulus

1.0
open-fixed
5
2010-12-14
2010-11-24
Anonymous
No

Calling arith1.CRT ( alist ) with len ( alist ) == 1 returns IndexError: list index out of range.
We must write

if len ( alist ) == 1 :
return alist [ 0 ] [ 0 ]

before calling the function.

Discussion

  • Tanaka Satoru

    Tanaka Satoru - 2010-12-14

    That's right.
    We'll merge the fix as you pointed at changeset 1751.

     
  • Tanaka Satoru

    Tanaka Satoru - 2010-12-14
    • assigned_to: nobody --> salt3des
    • status: open --> open-fixed