Fixed compile warning on amd64.
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 26 Oct 2007 17:59:36 +0000 (17:59 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 26 Oct 2007 17:59:36 +0000 (17:59 +0000)
comedi/drivers/ii_pci20kc.c

index 065969e6cdd5e54c8d971a440236404d79655b12..374e3dce401c102494a1dc3a8fd1cbe05311d209 100644 (file)
@@ -215,7 +215,7 @@ static int pci20xxx_attach(comedi_device * dev, comedi_devconfig * it)
        if ((ret = alloc_private(dev, sizeof(pci20xxx_private))) < 0)
                return ret;
 
-       devpriv->ioaddr = (void*) it->options[0];
+       devpriv->ioaddr = (void*) (unsigned long) it->options[0];
        dev->board_name = "pci20kc";
 
        /* Check PCI-20001 C-2A Carrier Board ID */