X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fmp_mpi.c;h=56d2730aa8d9b2466fc11f7291ea923d3b2c8452;hb=cfe162b20857876582cdbc541f628bc8048cac82;hp=f3ae30e91410bbf888713a36405ca3044f370030;hpb=7428855aff83c6dd40431bb88d3f1e5c973e7c06;p=silc.git diff --git a/lib/silcmath/mp_mpi.c b/lib/silcmath/mp_mpi.c index f3ae30e9..56d2730a 100644 --- a/lib/silcmath/mp_mpi.c +++ b/lib/silcmath/mp_mpi.c @@ -1,16 +1,15 @@ /* - mp_mpi.c + mp_mpi.c - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2001 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - + the Free Software Foundation; version 2 of the License. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -43,7 +42,7 @@ size_t silc_mp_sizeinbase(SilcMPInt *mp, int base) return mp_radix_size(mp, base) - 2; /* XXX This is actually wrong since this might produce wrong balue. But, it looks like MPI always returns - correct value + plus, whereas + correct value plus one, whereas GMP returns always the right value. */ }