Eliminate gcc -Wconversion warnings.

This commit is contained in:
Beman committed 2014-12-10 15:03:06 -05:00
1 parent dcde9463fc
commit 6c173766e3
3 files changed
+29 -17

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ namespace
++v; // verify integer_cover_operators being applied to this type -
// will fail to compile if no endian<> specialization is present
Endian x(v+v);
Endian x(static_cast<typename Endian::value_type>(v+v));
if ( x == x ) // silence warning
return;
}