diff --git a/test/cctest/test_crypto_clienthello.cc b/test/cctest/test_crypto_clienthello.cc index 60a8e294c890a9..44ad3d658adb51 100644 --- a/test/cctest/test_crypto_clienthello.cc +++ b/test/cctest/test_crypto_clienthello.cc @@ -48,8 +48,9 @@ class OverrunGuardedBuffer { public: OverrunGuardedBuffer() { #if defined(USE_MPROTECT) || defined(USE_VIRTUALPROTECT) - size_t page = GetPageSize(); - EXPECT_GE(page, N); + int page_size_int = GetPageSize(); + EXPECT_GE(page_size_int, N); + size_t page = page_size_int; #endif #ifdef USE_MPROTECT // Place the packet right before a guard page, which, when accessed, causes