mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Ignoring the upper 32 bits of a 64 bit constant is not a good thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94c96cc519
commit
a091fa8619
@ -35,16 +35,16 @@ inline unsigned Lo_32(uint64_t Value) {
|
||||
}
|
||||
|
||||
// is?Type - these functions produce optimal testing for integer data types.
|
||||
inline bool isInt8 (int Value) {
|
||||
inline bool isInt8 (int64_t Value) {
|
||||
return static_cast<signed char>(Value) == Value;
|
||||
}
|
||||
inline bool isUInt8 (int Value) {
|
||||
inline bool isUInt8 (int64_t Value) {
|
||||
return static_cast<unsigned char>(Value) == Value;
|
||||
}
|
||||
inline bool isInt16 (int Value) {
|
||||
inline bool isInt16 (int64_t Value) {
|
||||
return static_cast<signed short>(Value) == Value;
|
||||
}
|
||||
inline bool isUInt16(int Value) {
|
||||
inline bool isUInt16(int64_t Value) {
|
||||
return static_cast<unsigned short>(Value) == Value;
|
||||
}
|
||||
inline bool isInt32 (int64_t Value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user