mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix some truncation warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03a9939c61
commit
aa02c1df1d
@ -256,23 +256,23 @@ namespace llvm {
|
||||
}
|
||||
void outxword(DataBuffer &Output, uint64_t X) {
|
||||
if (isLittleEndian) {
|
||||
Output.push_back((X >> 0) & 255);
|
||||
Output.push_back((X >> 8) & 255);
|
||||
Output.push_back((X >> 16) & 255);
|
||||
Output.push_back((X >> 24) & 255);
|
||||
Output.push_back((X >> 32) & 255);
|
||||
Output.push_back((X >> 40) & 255);
|
||||
Output.push_back((X >> 48) & 255);
|
||||
Output.push_back((X >> 56) & 255);
|
||||
Output.push_back(unsigned(X >> 0) & 255);
|
||||
Output.push_back(unsigned(X >> 8) & 255);
|
||||
Output.push_back(unsigned(X >> 16) & 255);
|
||||
Output.push_back(unsigned(X >> 24) & 255);
|
||||
Output.push_back(unsigned(X >> 32) & 255);
|
||||
Output.push_back(unsigned(X >> 40) & 255);
|
||||
Output.push_back(unsigned(X >> 48) & 255);
|
||||
Output.push_back(unsigned(X >> 56) & 255);
|
||||
} else {
|
||||
Output.push_back((X >> 56) & 255);
|
||||
Output.push_back((X >> 48) & 255);
|
||||
Output.push_back((X >> 40) & 255);
|
||||
Output.push_back((X >> 32) & 255);
|
||||
Output.push_back((X >> 24) & 255);
|
||||
Output.push_back((X >> 16) & 255);
|
||||
Output.push_back((X >> 8) & 255);
|
||||
Output.push_back((X >> 0) & 255);
|
||||
Output.push_back(unsigned(X >> 56) & 255);
|
||||
Output.push_back(unsigned(X >> 48) & 255);
|
||||
Output.push_back(unsigned(X >> 40) & 255);
|
||||
Output.push_back(unsigned(X >> 32) & 255);
|
||||
Output.push_back(unsigned(X >> 24) & 255);
|
||||
Output.push_back(unsigned(X >> 16) & 255);
|
||||
Output.push_back(unsigned(X >> 8) & 255);
|
||||
Output.push_back(unsigned(X >> 0) & 255);
|
||||
}
|
||||
}
|
||||
void outaddr32(DataBuffer &Output, unsigned X) {
|
||||
|
Loading…
Reference in New Issue
Block a user