diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-01-17 18:56:06 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-01-17 18:56:06 +0000 |
commit | 3bba4c9222c4f8fbba9d102b0f2e7913c2036343 (patch) | |
tree | 5015eb260d579ffc64597d60e33812c4579e96db | |
parent | e6ab9cc9eef66bc301f32d55affe9c57453fa820 (diff) |
casts so this compiles on i386.
ok reyk
-rw-r--r-- | sys/dev/pci/if_myxreg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_myxreg.h b/sys/dev/pci/if_myxreg.h index ae6acf9a20d..c145b8df7a4 100644 --- a/sys/dev/pci/if_myxreg.h +++ b/sys/dev/pci/if_myxreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myxreg.h,v 1.2 2007/06/01 18:07:08 reyk Exp $ */ +/* $OpenBSD: if_myxreg.h,v 1.3 2008/01/17 18:56:05 thib Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -39,8 +39,8 @@ #define MYXALIGN_CMD 64 #define MYXALIGN_DATA PAGE_SIZE -#define MYX_ADDRHIGH(_v) ((_v >> 32) & 0xffffffff) -#define MYX_ADDRLOW(_v) (_v & 0xffffffff) +#define MYX_ADDRHIGH(_v) (((u_int64_t)_v >> 32) & 0xffffffff) +#define MYX_ADDRLOW(_v) ((u_int64_t)_v & 0xffffffff) /* * PCI memory/register layout |