diff options
author | John Levon <john.levon@nutanix.com> | 2020-11-24 09:36:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 09:36:50 +0000 |
commit | 3b8d4018aa01cb4896b27cff1777beec20d27096 (patch) | |
tree | 98ee679cc6e9316331fcf8213a3867363d39f399 /lib/common.h | |
parent | 3ba6609e1b3609b0b2764c1dcbc596f071873a83 (diff) | |
download | libvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.zip libvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.tar.gz libvfio-user-3b8d4018aa01cb4896b27cff1777beec20d27096.tar.bz2 |
parse VFIO_USER_VERSION JSON stanza
Diffstat (limited to 'lib/common.h')
-rw-r--r-- | lib/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.h b/lib/common.h index 2711da6..41bf343 100644 --- a/lib/common.h +++ b/lib/common.h @@ -41,7 +41,7 @@ #define UNUSED __attribute__((unused)) -#define PAGE_SIZE sysconf(_SC_PAGE_SIZE) +#define PAGE_SIZE (size_t)sysconf(_SC_PAGE_SIZE) #define PAGE_ALIGNED(x) (((x) & ((typeof(x))(PAGE_SIZE) - 1)) == 0) #define BIT(nr) (1UL << (nr)) |