Commit 41de9cd3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udev: flawed logic

parent bbfe2d62
......@@ -140,7 +140,7 @@ static int cmpdev (const void *a, const void *b)
dev_t delta = *da - *db;
if (sizeof (delta) > sizeof (int))
return delta ? ((delta > 0) ? 1 : -1) : 0;
return delta ? (((signed)delta > 0) ? 1 : -1) : 0;
return (signed)delta;
}
......
Markdown is supported
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