mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
Negation after cast to signed int! (interestingly most compilers accepted and negated this anyway). Thanks DS
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40662
This commit is contained in:
parent
9b0e8a2658
commit
82c0b15c65
@ -1047,7 +1047,7 @@ namespace SourceHook
|
||||
// jump back to loop begin
|
||||
tmppos2 = IA32_Jump_Imm32(&m_HookFunc, 0);
|
||||
m_HookFunc.end_count(loop_begin_counter);
|
||||
m_HookFunc.rewrite(tmppos2, static_cast<jit_int32_t>(-loop_begin_counter));
|
||||
m_HookFunc.rewrite(tmppos2, -static_cast<jit_int32_t>(loop_begin_counter));
|
||||
|
||||
m_HookFunc.end_count(counter);
|
||||
m_HookFunc.rewrite(tmppos, static_cast<jit_int32_t>(counter));
|
||||
|
Loading…
x
Reference in New Issue
Block a user