Commit cc78ddf4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

int --> size_t in single_io

parent 9b06a53e
......@@ -468,9 +468,9 @@ void write_output_single(struct engine* e, struct UnitSystem* us) {
static int outputCount = 0;
/* Number of particles of each type */
const int Ndm = Ntot - Ngas;
int numParticles[6] = {Ngas, Ndm, 0};
int numParticlesHighWord[6] = {0};
const size_t Ndm = Ntot - Ngas;
int numParticles[6] = {Ngas, Ndm, 0}; /* Gadget-2 convention here */
int numParticlesHighWord[6] = {0}; /* Could use size_t instead */
/* File name */
char fileName[200];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment