diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-05-18 14:49:08 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-05-18 14:49:08 -0700 |
commit | de7f00c1e4a85742cb9d701316dd59fa4c1a5a7f (patch) | |
tree | e95e67af8b3915105b422575bdc1e753d499ea30 /libpagemap | |
parent | 5767273e98eb1a17827f0eb95612fb3fb4d6f12c (diff) | |
download | extras-de7f00c1e4a85742cb9d701316dd59fa4c1a5a7f.tar.gz |
Fix misc-macro-parentheses warnings in libpagemap.
Bug: 28705665
Change-Id: I3a40229aeba12b3fb643770c92039a2af1e4a441
Diffstat (limited to 'libpagemap')
-rw-r--r-- | libpagemap/include/pagemap/pagemap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpagemap/include/pagemap/pagemap.h b/libpagemap/include/pagemap/pagemap.h index 4de2b4b6..61e59e2f 100644 --- a/libpagemap/include/pagemap/pagemap.h +++ b/libpagemap/include/pagemap/pagemap.h @@ -186,7 +186,7 @@ int pm_process_pagemap_range(pm_process_t *proc, uint64_t low, uint64_t hi, uint64_t **range_out, size_t *len); -#define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1)) +#define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) #define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) #define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) |