Fix a fixme, patch by Ryan Flynn!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-07-15 00:36:04 +00:00
parent f975e011fb
commit cd2b4c1846

View File

@ -93,12 +93,11 @@ public:
}
SmallString &append_sint(int64_t N) {
// TODO, wrong for minint64.
if (N < 0) {
this->push_back('-');
N = -N;
}
return append_uint(N);
return append_uint((uint64_t)N);
}
};