diff options
Diffstat (limited to 'protocols/Sametime')
-rw-r--r-- | protocols/Sametime/src/meanwhile/src/mpi/mpi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/Sametime/src/meanwhile/src/mpi/mpi.c b/protocols/Sametime/src/meanwhile/src/mpi/mpi.c index 1a33e98525..29626c80a2 100644 --- a/protocols/Sametime/src/meanwhile/src/mpi/mpi.c +++ b/protocols/Sametime/src/meanwhile/src/mpi/mpi.c @@ -1643,11 +1643,11 @@ mw_mp_err mw_mp_exptmod(mw_mp_int *a, mw_mp_int *b, mw_mp_int *m, mw_mp_int *c) { mw_mp_int s, x, mu; mw_mp_err res; - mw_mp_digit d, *db = DIGITS(b); + mw_mp_digit d, *db; mw_mp_size ub = USED(b); - /// Miranda NG adaptation start - MSVC
- ///int dig, bit;
- int bit;
+ /// Miranda NG adaptation start - MSVC + ///int dig, bit; + int bit; mw_mp_size dig; /// Miranda NG adaptation end @@ -1673,6 +1673,7 @@ mw_mp_err mw_mp_exptmod(mw_mp_int *a, mw_mp_int *b, mw_mp_int *m, mw_mp_int *c) goto CLEANUP; /* Loop over digits of b in ascending order, except highest order */ + db = DIGITS(b); for(dig = 0; dig < (ub - 1); dig++) { d = *db++; |