Skip to content
Snippets Groups Projects
Commit d3bf6e3e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Better type for ID check

parent 0b5ebeb4
No related branches found
No related tags found
2 merge requests!136Master,!131Redistribute fixes
......@@ -565,8 +565,10 @@ void collect_dm_gparts(const struct gpart *const gparts, size_t Ntot, struct gpa
/* Loop over all gparts */
for (size_t i = 0; i < Ntot; ++i) {
/* message("i=%zd count=%zd id=%lld part=%p", i, count, gparts[i].id, gparts[i].part); */
/* And collect the DM ones */
if (gparts[i].id < 0) {
if (gparts[i].id < 0LL) {
memcpy(&dmparts[count], &gparts[i], sizeof(struct gpart));
dmparts[count].id = -dmparts[count].id;
count++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment