Permalink
Browse files

No need to pass state into mp_radix_size

  • Loading branch information...
1 parent 7f52895 commit aa3c35f382ef399f7ef5fe757b92f74966610055 @dbussink dbussink committed Jan 9, 2013
View
2 vendor/libtommath/bn_mp_fwrite.c
@@ -20,7 +20,7 @@ int mp_fwrite MPA(mp_int *a, int radix, FILE *stream)
char *buf;
int err, len, x;
- if ((err = mp_radix_size(MPST, a, radix, &len)) != MP_OKAY) {
+ if ((err = mp_radix_size(a, radix, &len)) != MP_OKAY) {
return err;
}
View
2 vendor/libtommath/bn_mp_radix_size.c
@@ -16,7 +16,7 @@
*/
/* returns size of ASCII reprensentation */
-int mp_radix_size MPA(mp_int * a, int radix, int *size)
+int mp_radix_size(mp_int * a, int radix, int *size)
{
int bits;
View
2 vendor/libtommath/tommath.h
@@ -547,7 +547,7 @@ int mp_read_radix MPA(mp_int *a, const char *str, int radix);
int mp_toradix MPA(mp_int *a, char *str, int radix);
int mp_toradix_n MPA(mp_int * a, char *str, int radix, int maxlen);
int mp_toradix_nd MPA(mp_int * a, char *str, int radix, int maxlen, int *digits);
-int mp_radix_size MPA(mp_int *a, int radix, int *size);
+int mp_radix_size(mp_int *a, int radix, int *size);
int mp_radix_bits_size(int bits, int radix, int *size);
int mp_fread MPA(mp_int *a, int radix, FILE *stream);
View
2 vm/builtin/bignum.cpp
@@ -999,7 +999,7 @@ namespace rubinius {
int sz = 0;
int digits;
- mp_radix_size(state, self, b, &sz);
+ mp_radix_size(self, b, &sz);
if(sz == 0) {
Exception::runtime_error(state, "couldn't convert bignum to string");
}

0 comments on commit aa3c35f

Please sign in to comment.