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

Better type for ID check

parent 0b5ebeb4
......@@ -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++;
......
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