From 3ba8165f2cdd1f82ccd22f57c4ca8085b1a15889 Mon Sep 17 00:00:00 2001 From: Logan Evans Date: Tue, 26 Oct 2021 11:52:00 -0700 Subject: [PATCH] Remove use of deprecated keyword "register". Summary: This keyword is deprecated and no longer does anything except show up on linters. Differential Revision: D31554260 fbshipit-source-id: 2cfa3b616699cb10a458866585d1b1c8f24a2044 --- hphp/zend/zend-rand.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hphp/zend/zend-rand.cpp b/hphp/zend/zend-rand.cpp index 9e54c1b4973..c132e80102a 100644 --- a/hphp/zend/zend-rand.cpp +++ b/hphp/zend/zend-rand.cpp @@ -130,9 +130,9 @@ void php_mt_initialize(uint32_t seed, uint32_t* state) { In previous versions, most significant bits (MSBs) of the seed affect only MSBs of the state array. Modified 9 Jan 2002 by Makoto Matsumoto. */ - register uint32_t* s = state; - register uint32_t* r = state; - register int i = 1; + uint32_t* s = state; + uint32_t* r = state; + int i = 1; *s++ = seed & 0xffffffffU; for( ; i < N; ++i ) { @@ -145,9 +145,9 @@ void php_mt_reload() { /* Generate N new values in state Made clearer and faster by Matthew Bellew (matthew.bellew@home.com) */ - register uint32_t* state = s_data->state; - register uint32_t* p = state; - register int i; + uint32_t* state = s_data->state; + uint32_t* p = state; + int i; for (i = N - M; i--; ++p) *p = twist(p[M], p[0], p[1]); @@ -162,7 +162,7 @@ uint32_t php_mt_rand() { // Pull a 32-bit integer from the generator state // Every other access function simply transforms the numbers extracted here - register uint32_t s1; + uint32_t s1; if (s_data->left == 0) { php_mt_reload(); -- 2.11.4.GIT