Use size_t, which is better for arrays of very large sizes.

This commit is contained in:
Nicolás A. Ortega
2016-12-14 14:13:32 +01:00
parent 2a3e97f4bc
commit 5bbac132bc
4 changed files with 4 additions and 9 deletions

View File

@ -2,15 +2,13 @@
#include <gmp.h>
#include <stdbool.h>
#include "types.h"
/**
* @brief An infinitely expanding list type.
*/
typedef struct {
mpz_t *list; //!< The list of elements
ulli size; //!< How many elements are in the list
ulli end; //!< The last element of the list (in use)
size_t size; //!< How many elements are in the list
size_t end; //!< The last element of the list (in use)
} List;
/**