From 03f18ea00c5742a024a91136567107d5a4e29c9d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 29 Jan 2011 18:07:52 -0700 Subject: [PATCH] change reinterpret_casts to static_casts in x86.cpp where appropriate --- src/x86.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/x86.cpp b/src/x86.cpp index a52fdc5da2..c2432e2ad8 100644 --- a/src/x86.cpp +++ b/src/x86.cpp @@ -2595,7 +2595,7 @@ nextFrame(ArchitectureContext* c UNUSED, uint8_t* start, unsigned size UNUSED, } if (instruction <= start) { - *ip = reinterpret_cast(*stack)[0]; + *ip = static_cast(*stack)[0]; return; } @@ -2604,14 +2604,14 @@ nextFrame(ArchitectureContext* c UNUSED, uint8_t* start, unsigned size UNUSED, start += (BytesPerWord == 4 ? 3 : 4); if (instruction <= start or *instruction == 0x5d) { - *ip = reinterpret_cast(*stack)[1]; - *stack = reinterpret_cast(*stack) + 1; + *ip = static_cast(*stack)[1]; + *stack = static_cast(*stack) + 1; return; } } if (*instruction == 0xc3) { // return - *ip = reinterpret_cast(*stack)[0]; + *ip = static_cast(*stack)[0]; return; } @@ -2646,8 +2646,8 @@ nextFrame(ArchitectureContext* c UNUSED, uint8_t* start, unsigned size UNUSED, // todo: use frameTable to check for and handle tail calls } - *ip = reinterpret_cast(*stack)[offset]; - *stack = reinterpret_cast(*stack) + offset; + *ip = static_cast(*stack)[offset]; + *stack = static_cast(*stack) + offset; } void