Kaydet (Commit) 6c8a5bcf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Wmicrosoft-cast

Change-Id: Idc7b1c8c953634c26aad0923344457eae6fb1583
üst 033d1acd
...@@ -469,7 +469,7 @@ void GenerateConstructorTrampoline( ...@@ -469,7 +469,7 @@ void GenerateConstructorTrampoline(
// mov r11, copyConstruct // mov r11, copyConstruct
*p++ = 0x49; *p++ = 0xBB; *p++ = 0x49; *p++ = 0xBB;
*((void **)p) = &copyConstruct; p += 8; *((void **)p) = reinterpret_cast<void *>(&copyConstruct); p += 8;
// jmp r11 // jmp r11
*p++ = 0x41; *p++ = 0xFF; *p++ = 0xE3; *p++ = 0x41; *p++ = 0xFF; *p++ = 0xE3;
...@@ -489,7 +489,7 @@ void GenerateDestructorTrampoline( ...@@ -489,7 +489,7 @@ void GenerateDestructorTrampoline(
// mov r11, destruct // mov r11, destruct
*p++ = 0x49; *p++ = 0xBB; *p++ = 0x49; *p++ = 0xBB;
*((void **)p) = &destruct; p += 8; *((void **)p) = reinterpret_cast<void *>(&destruct); p += 8;
// jmp r11 // jmp r11
*p++ = 0x41; *p++ = 0xFF; *p++ = 0xE3; *p++ = 0x41; *p++ = 0xFF; *p++ = 0xE3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment