Merge pull request #546 from nspcc-dev/write-optimizations
Write optimizations
This commit is contained in:
commit
e4d821f32d
26 changed files with 59 additions and 50 deletions
|
@ -19,7 +19,7 @@ func emit(w *io.BinWriter, instr opcode.Opcode, b []byte) {
|
|||
|
||||
// emitOpcode emits a single VM Instruction the given buffer.
|
||||
func emitOpcode(w *io.BinWriter, instr opcode.Opcode) {
|
||||
w.WriteLE(byte(instr))
|
||||
w.WriteBytes([]byte{byte(instr)})
|
||||
}
|
||||
|
||||
// emitBool emits a bool type the given buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue