From 104c396106e3e83230265c21f57f8bfd73c96724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Cla=C3=9Fen?= Date: Thu, 8 Jan 2015 01:11:25 +0100 Subject: [PATCH] Deprecation warning fixed --- src/httpserver/http_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;