Restrict will no longer apply to `addToList'

This commit is contained in:
Nicolás A. Ortega 2017-01-17 00:11:51 +01:00
parent 22c7702cf0
commit a6ecea514f
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ void deInitList(List *restrict l) {
free(l->list);
}
int addToList(List *restrict l, mpz_t n) {
int addToList(List *l, mpz_t n) {
if(l->end == l->size) {
l->size += BLOCK_SIZE;
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);

View File

@ -40,4 +40,4 @@ void deInitList(List *restrict l);
* @param[in] n variable to be appended to the list.
* @returns Returns 0 if successful and 1 if failed.
*/
int addToList(List *restrict l, mpz_t n);
int addToList(List *l, mpz_t n);