mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
GCC doesn't like prefix form of cast with two identifiers I guess.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,7 +28,7 @@ static inline std::string utohexstr(uint64_t X) {
|
|||||||
if (X == 0) *--BufPtr = '0'; // Handle special case...
|
if (X == 0) *--BufPtr = '0'; // Handle special case...
|
||||||
|
|
||||||
while (X) {
|
while (X) {
|
||||||
unsigned char Mod = unsigned char(X) & 15;
|
unsigned char Mod = (unsigned char)X & 15;
|
||||||
if (Mod < 10)
|
if (Mod < 10)
|
||||||
*--BufPtr = '0' + Mod;
|
*--BufPtr = '0' + Mod;
|
||||||
else
|
else
|
||||||
|
@ -28,7 +28,7 @@ static inline std::string utohexstr(uint64_t X) {
|
|||||||
if (X == 0) *--BufPtr = '0'; // Handle special case...
|
if (X == 0) *--BufPtr = '0'; // Handle special case...
|
||||||
|
|
||||||
while (X) {
|
while (X) {
|
||||||
unsigned char Mod = unsigned char(X) & 15;
|
unsigned char Mod = (unsigned char)X & 15;
|
||||||
if (Mod < 10)
|
if (Mod < 10)
|
||||||
*--BufPtr = '0' + Mod;
|
*--BufPtr = '0' + Mod;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user