mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Fix a silly off by one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a397a11c7c
commit
59a4f9af0a
@ -76,7 +76,7 @@ public:
|
||||
bool contains(unsigned Reg) const {
|
||||
unsigned InByte = Reg % 8;
|
||||
unsigned Byte = Reg / 8;
|
||||
if (Byte > RegSetSize)
|
||||
if (Byte >= RegSetSize)
|
||||
return false;
|
||||
return (RegSet[Byte] & (1 << InByte)) != 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user