From 013263f7b008e2fca293cf2720205f3f6db37dc2 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 24 Mar 2007 22:50:43 +0000 Subject: [PATCH] Get the signs in the right place! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35307 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1