In pci230_choose_clk_src(), widen the type of the comparison constant
authorIan Abbott <abbotti@mev.co.uk>
Fri, 9 Nov 2007 16:36:32 +0000 (16:36 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 9 Nov 2007 16:36:32 +0000 (16:36 +0000)
6553600000 from ul to ull.

comedi/drivers/amplc_pci230.c

index dbba6232ed6277a2c31c3378c5742ca22b76d4a9..52a8fb47513be62d64dc988683ca3b23e1441273 100644 (file)
@@ -1490,7 +1490,7 @@ static unsigned int pci230_choose_clk_src(uint64_t ns)
                clk_src = CLK_1MHZ;
        else if (ns <= 655360000u)
                clk_src = CLK_100KHZ;
-       else if (ns <= 6553600000ul)
+       else if (ns <= 6553600000ull)
                clk_src = CLK_10KHZ;
        else
                clk_src = CLK_1KHZ;