remove trailing whitespace
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
int mp_fread(mp_int *a, int radix, FILE *stream)
|
||||
{
|
||||
int err, ch, neg, y;
|
||||
|
||||
|
||||
/* clear a */
|
||||
mp_zero(a);
|
||||
|
||||
|
||||
/* if first digit is - then set negative */
|
||||
ch = fgetc(stream);
|
||||
if (ch == '-') {
|
||||
@@ -31,7 +31,7 @@ int mp_fread(mp_int *a, int radix, FILE *stream)
|
||||
} else {
|
||||
neg = MP_ZPOS;
|
||||
}
|
||||
|
||||
|
||||
for (;;) {
|
||||
/* find y in the radix map */
|
||||
for (y = 0; y < radix; y++) {
|
||||
@@ -42,7 +42,7 @@ int mp_fread(mp_int *a, int radix, FILE *stream)
|
||||
if (y == radix) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/* shift up and add */
|
||||
if ((err = mp_mul_d(a, radix, a)) != MP_OKAY) {
|
||||
return err;
|
||||
@@ -50,13 +50,13 @@ int mp_fread(mp_int *a, int radix, FILE *stream)
|
||||
if ((err = mp_add_d(a, y, a)) != MP_OKAY) {
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
ch = fgetc(stream);
|
||||
}
|
||||
if (mp_cmp_d(a, 0) != MP_EQ) {
|
||||
a->sign = neg;
|
||||
}
|
||||
|
||||
|
||||
return MP_OKAY;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user