From: Martin Mares Date: Mon, 1 Apr 2013 19:24:03 +0000 (+0200) Subject: setpci: ~0UL should be ~0U, no longs are involved anymore X-Git-Tag: v3.2.1~25 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fcca0ba55ed87110546e47f791461e0d917643e6;p=pciutils.git setpci: ~0UL should be ~0U, no longs are involved anymore --- diff --git a/setpci.c b/setpci.c index 731c612..acf7689 100644 --- a/setpci.c +++ b/setpci.c @@ -637,14 +637,14 @@ static void parse_op(char *c, struct pci_dev **selected_devices) if (parse_x32(value, &f, &ll) < 0 || f && *f != ':') parse_err("Invalid value \"%s\"", value); lim = max_values[op->width]; - if (ll > lim && ll < ~0UL - lim) + if (ll > lim && ll < ~0U - lim) parse_err("Value \"%s\" is out of range", value); op->values[j].value = ll; if (f && *f == ':') { if (parse_x32(f+1, NULL, &ll) <= 0) parse_err("Invalid mask \"%s\"", f+1); - if (ll > lim && ll < ~0UL - lim) + if (ll > lim && ll < ~0U - lim) parse_err("Mask \"%s\" is out of range", f+1); op->values[j].mask = ll; op->values[j].value &= ll;