Get the signs in the right place!
authorReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 22:50:43 +0000 (22:50 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 22:50:43 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35307 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index 76a852b1a08475011187b7d6927d435daaaa2088..90564ef3f8b17b88adff64fcadb1202effea3787 100644 (file)
@@ -568,7 +568,7 @@ public:
       if (RHS.isNegative())
         return -((-(*this)).urem(-RHS));
       else
-        return -(-(*this)).urem(RHS);
+        return -((-(*this)).urem(RHS));
     else if (RHS.isNegative())
       return this->urem(-RHS);
     return this->urem(RHS);