Negation after cast to signed int! (interestingly most compilers accepted and negated this anyway). Thanks DS
authorPavol Marko <pavolmarko@gmail.com>
Tue Feb 19 20:40:29 2008 +0000 (2008-02-19)
changeset 515895b7d2268fa
parent 514 099d37d50e04
child 516 2be030bc9c66
Negation after cast to signed int! (interestingly most compilers accepted and negated this anyway). Thanks DS
sourcehook/sourcehook_hookmangen.cpp
     1.1 --- a/sourcehook/sourcehook_hookmangen.cpp	Mon Feb 18 23:30:34 2008 +0000
     1.2 +++ b/sourcehook/sourcehook_hookmangen.cpp	Tue Feb 19 20:40:29 2008 +0000
     1.3 @@ -1047,7 +1047,7 @@
     1.4  			// jump back to loop begin
     1.5  			tmppos2 = IA32_Jump_Imm32(&m_HookFunc, 0);
     1.6  			m_HookFunc.end_count(loop_begin_counter);
     1.7 -			m_HookFunc.rewrite(tmppos2, static_cast<jit_int32_t>(-loop_begin_counter));
     1.8 +			m_HookFunc.rewrite(tmppos2, -static_cast<jit_int32_t>(loop_begin_counter));
     1.9  
    1.10  			m_HookFunc.end_count(counter);
    1.11  			m_HookFunc.rewrite(tmppos, static_cast<jit_int32_t>(counter));