Restrict will no longer apply to `addToList'
This commit is contained in:
parent
22c7702cf0
commit
a6ecea514f
@ -21,7 +21,7 @@ void deInitList(List *restrict l) {
|
|||||||
free(l->list);
|
free(l->list);
|
||||||
}
|
}
|
||||||
|
|
||||||
int addToList(List *restrict l, mpz_t n) {
|
int addToList(List *l, mpz_t n) {
|
||||||
if(l->end == l->size) {
|
if(l->end == l->size) {
|
||||||
l->size += BLOCK_SIZE;
|
l->size += BLOCK_SIZE;
|
||||||
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);
|
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);
|
||||||
|
@ -40,4 +40,4 @@ void deInitList(List *restrict l);
|
|||||||
* @param[in] n variable to be appended to the list.
|
* @param[in] n variable to be appended to the list.
|
||||||
* @returns Returns 0 if successful and 1 if failed.
|
* @returns Returns 0 if successful and 1 if failed.
|
||||||
*/
|
*/
|
||||||
int addToList(List *restrict l, mpz_t n);
|
int addToList(List *l, mpz_t n);
|
||||||
|
Loading…
Reference in New Issue
Block a user