mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Silence warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
813c815282
commit
9dacd128b4
@ -505,10 +505,10 @@ static GenericValue size_t_to_GV (size_t n) {
|
|||||||
static size_t GV_to_size_t (GenericValue GV) {
|
static size_t GV_to_size_t (GenericValue GV) {
|
||||||
size_t count;
|
size_t count;
|
||||||
if (sizeof (size_t) == sizeof (uint64_t)) {
|
if (sizeof (size_t) == sizeof (uint64_t)) {
|
||||||
count = GV.ULongVal;
|
count = (size_t)GV.ULongVal;
|
||||||
} else {
|
} else {
|
||||||
assert (sizeof (size_t) == sizeof (unsigned int));
|
assert (sizeof (size_t) == sizeof (unsigned int));
|
||||||
count = GV.UIntVal;
|
count = (size_t)GV.UIntVal;
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user