diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-09-02 18:19:01 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-09-27 09:25:15 +0200 |
commit | 4731cab8fbff51a8178c85d572e2482040278616 (patch) | |
tree | 09ba06a320b4876f9318a5b9ff086e5cae9c48fe /src/support | |
parent | 2f71490d21796594ca6f55e375558944de9db5a0 (diff) |
Do not shadow variables
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/pagelocker.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/support/pagelocker.h b/src/support/pagelocker.h index 6b3979e551..538bf39453 100644 --- a/src/support/pagelocker.h +++ b/src/support/pagelocker.h @@ -28,11 +28,11 @@ template <class Locker> class LockedPageManagerBase { public: - LockedPageManagerBase(size_t page_size) : page_size(page_size) + LockedPageManagerBase(size_t _page_size) : page_size(_page_size) { // Determine bitmask for extracting page from address - assert(!(page_size & (page_size - 1))); // size must be power of two - page_mask = ~(page_size - 1); + assert(!(_page_size & (_page_size - 1))); // size must be power of two + page_mask = ~(_page_size - 1); } ~LockedPageManagerBase() |