Eliminate variable shadowing warnings with MSVC (#17)

This commit is contained in:
Mat M 2016-09-04 06:30:57 -04:00 committed by Merry
parent 7f9a0c3c38
commit 858796a029
5 changed files with 16 additions and 7 deletions

View file

@ -227,9 +227,9 @@ void BlockOfCode::nop(size_t size) {
}
}
void BlockOfCode::SetCodePtr(CodePtr ptr) {
void BlockOfCode::SetCodePtr(CodePtr code_ptr) {
// The "size" defines where top_, the insertion point, is.
size_t required_size = reinterpret_cast<const u8*>(ptr) - getCode();
size_t required_size = reinterpret_cast<const u8*>(code_ptr) - getCode();
setSize(required_size);
}