mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix generous source of VC++ truncation warnings.
llvm-svn: 25311
This commit is contained in:
parent
82014d8dcd
commit
ae3d2a938b
@ -100,8 +100,8 @@ inline unsigned ByteSwap_32(unsigned Value) {
|
|||||||
// ByteSwap_64 - This function returns a byte-swapped representation of the
|
// ByteSwap_64 - This function returns a byte-swapped representation of the
|
||||||
// 64-bit argument, Value.
|
// 64-bit argument, Value.
|
||||||
inline uint64_t ByteSwap_64(uint64_t Value) {
|
inline uint64_t ByteSwap_64(uint64_t Value) {
|
||||||
uint64_t Hi = ByteSwap_32(Value);
|
uint64_t Hi = ByteSwap_32(unsigned(Value));
|
||||||
uint64_t Lo = ByteSwap_32(Value >> 32);
|
uint64_t Lo = ByteSwap_32(unsigned(Value >> 32));
|
||||||
return (Hi << 32) | Lo;
|
return (Hi << 32) | Lo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user