0

The readByte and readInt are inline methods. The problem is that the readInt call is actually executed first, so i get wrong OPCODE, cause it is already poped by thereadInt call. Is it normal? I think they should be performed in order as they appear in source code.

log << "OPCODE: " << std::hex << (unsigned int)bytes.readByte() << ", DIFF: " << bytes.readInt() << std::endl;
user207421
  • 305,947
  • 44
  • 307
  • 483
Krab
  • 6,526
  • 6
  • 41
  • 78

0 Answers0