run make astyle
This commit is contained in:
parent
179daef123
commit
cf80753764
@ -25,7 +25,7 @@ void mp_clear(mp_int *a)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* free ram */
|
/* free ram */
|
||||||
XFREE(a->dp, sizeof (mp_digit) * (size_t)a->alloc);
|
XFREE(a->dp, sizeof(mp_digit) * (size_t)a->alloc);
|
||||||
|
|
||||||
/* reset members to make debugging easier */
|
/* reset members to make debugging easier */
|
||||||
a->dp = NULL;
|
a->dp = NULL;
|
||||||
|
@ -30,7 +30,7 @@ int mp_grow(mp_int *a, int size)
|
|||||||
* to overwrite the dp member of a.
|
* to overwrite the dp member of a.
|
||||||
*/
|
*/
|
||||||
tmp = (mp_digit *) XREALLOC(a->dp,
|
tmp = (mp_digit *) XREALLOC(a->dp,
|
||||||
(size_t)a->alloc * sizeof (mp_digit),
|
(size_t)a->alloc * sizeof(mp_digit),
|
||||||
(size_t)size * sizeof(mp_digit));
|
(size_t)size * sizeof(mp_digit));
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
/* reallocation failed but "a" is still valid [can be freed] */
|
/* reallocation failed but "a" is still valid [can be freed] */
|
||||||
|
@ -24,7 +24,7 @@ int mp_shrink(mp_int *a)
|
|||||||
|
|
||||||
if (a->alloc != used) {
|
if (a->alloc != used) {
|
||||||
if ((tmp = (mp_digit *) XREALLOC(a->dp,
|
if ((tmp = (mp_digit *) XREALLOC(a->dp,
|
||||||
(size_t)a->alloc * sizeof (mp_digit),
|
(size_t)a->alloc * sizeof(mp_digit),
|
||||||
(size_t)used * sizeof(mp_digit))) == NULL) {
|
(size_t)used * sizeof(mp_digit))) == NULL) {
|
||||||
return MP_MEM;
|
return MP_MEM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user