From: Reid Spencer Date: Sat, 24 Mar 2007 22:50:43 +0000 (+0000) Subject: Get the signs in the right place! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=013263f7b008e2fca293cf2720205f3f6db37dc2;p=oota-llvm.git Get the signs in the right place! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35307 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 76a852b1a08..90564ef3f8b 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -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);