diff --git a/src/httpserver/http_utils.hpp b/src/httpserver/http_utils.hpp index 51b97ffd..edc19552 100644 --- a/src/httpserver/http_utils.hpp +++ b/src/httpserver/http_utils.hpp @@ -303,7 +303,7 @@ struct ip_representation const int weight() const { //variable-precision SWAR algorithm - register unsigned int x = mask; + unsigned int x = mask; x = x - ((x >> 1) & 0x55555555); x = (x & 0x33333333) + ((x >> 2) & 0x33333333); return (((x + (x >> 4)) & 0x0F0F0F0F) * 0x01010101) >> 24;