Fix a fixme, patch by Ryan Flynn!
authorChris Lattner <sabre@nondot.org>
Wed, 15 Jul 2009 00:36:04 +0000 (00:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Jul 2009 00:36:04 +0000 (00:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75716 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallString.h

index 687fa2d26e246f42680b365956c5687b1e00ac43..bbc3c0526ad4e7d76815def0f70c09e218533eb8 100644 (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);
   }
 
 };