From 783af7926420e17f10d80d74cf3459b2c87d2541 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Fri, 20 Dec 2013 08:24:38 +0000 Subject: Fix gcc-4.9 compilation warning when using -Wstrict-overflow git-svn-id: http://pugixml.googlecode.com/svn/trunk@957 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index b13a4d5..be8bcea 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -938,7 +938,7 @@ PUGI__NS_BEGIN while (data < end) { - uint16_t lead = opt_swap::value ? endian_swap(*data) : *data; + unsigned int lead = opt_swap::value ? endian_swap(*data) : *data; // U+0000..U+D7FF if (lead < 0xD800) -- cgit v1.2.3