mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by Yonggang Luo!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a56c57e5f0
commit
c6ca847a4e
@ -117,7 +117,7 @@ namespace {
|
||||
uint64_t complow = 1 << (63 - at);
|
||||
uint64_t comphigh = 1 << (64 - at);
|
||||
//cerr << x << ":" << complow << ":" << comphigh << "\n";
|
||||
if (abs(complow - x) <= abs(comphigh - x))
|
||||
if (abs64(complow - x) <= abs64(comphigh - x))
|
||||
return complow;
|
||||
else
|
||||
return comphigh;
|
||||
|
Loading…
Reference in New Issue
Block a user