aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/RelocVisitor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Object/RelocVisitor.h b/include/llvm/Object/RelocVisitor.h
index 7668bdedb7..17e52edd5d 100644
--- a/include/llvm/Object/RelocVisitor.h
+++ b/include/llvm/Object/RelocVisitor.h
@@ -80,17 +80,17 @@ private:
RelocToApply zeroExtend(RelocToApply r, char Width) {
if (Width == r.Width)
return r;
- r.Value &= (1 << ((Width * 8))) - 1;
+ r.Value &= (1LL << ((Width * 8))) - 1;
return r;
}
RelocToApply signExtend(RelocToApply r, char Width) {
if (Width == r.Width)
return r;
- bool SignBit = r.Value & (1 << ((Width * 8) - 1));
+ bool SignBit = r.Value & (1LL << ((Width * 8) - 1));
if (SignBit) {
- r.Value |= ~((1 << (Width * 8)) - 1);
+ r.Value |= ~((1LL << (Width * 8)) - 1);
} else {
- r.Value &= (1 << (Width * 8)) - 1;
+ r.Value &= (1LL << (Width * 8)) - 1;
}
return r;
}