mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
- Printing non-void pointers with %p. - Left-shifting negative numbers. PR: 202534 Submitted by: dim
11 lines
403 B
C++
11 lines
403 B
C++
--- src/ia32/disasm-ia32.cc.orig 2014-06-03 08:52:11 UTC
|
|
+++ src/ia32/disasm-ia32.cc
|
|
@@ -1743,7 +1743,7 @@ int Disassembler::ConstantPoolSizeAt(byt
|
|
buffer[0] = '\0';
|
|
byte* prev_pc = pc;
|
|
pc += d.InstructionDecode(buffer, pc);
|
|
- fprintf(f, "%p", prev_pc);
|
|
+ fprintf(f, "%p", reinterpret_cast<void*>(prev_pc));
|
|
fprintf(f, " ");
|
|
|
|
for (byte* bp = prev_pc; bp < pc; bp++) {
|