forked from boostorg/endian
Eliminate gcc -Wconversion warnings.
This commit is contained in:
1 parent
dcde9463fc
commit
6c173766e3
3 files changed
+29
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user