Use 8 byte integers for sizes when allocating in C
Description
Otherwise, integer overflow can occur for very large meshes with large states block sizes. This in turn leads to less memory being allocated and subsequently to a segmentation fault when trying to access the part of memory that has not been allocated.
Checklist
-
I have checked that my code follows the Octopus coding standards