mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Whoops, missed a couple more C-style casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,12 +25,12 @@ namespace llvm {
|
|||||||
|
|
||||||
// Hi_32 - This function returns the high 32 bits of a 64 bit value.
|
// Hi_32 - This function returns the high 32 bits of a 64 bit value.
|
||||||
inline unsigned Hi_32(uint64_t Value) {
|
inline unsigned Hi_32(uint64_t Value) {
|
||||||
return (unsigned)(Value >> 32);
|
return static_cast<unsigned>(Value >> 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lo_32 - This function returns the low 32 bits of a 64 bit value.
|
// Lo_32 - This function returns the low 32 bits of a 64 bit value.
|
||||||
inline unsigned Lo_32(uint64_t Value) {
|
inline unsigned Lo_32(uint64_t Value) {
|
||||||
return (unsigned)Value;
|
return static_cast<unsigned>(Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// is?Type - these functions produce optimal testing for integer data types.
|
// is?Type - these functions produce optimal testing for integer data types.
|
||||||
|
Reference in New Issue
Block a user