op: assume aux ops are always wrapped by a macro

Shaves off a length, and prepares for further simplification.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 20:01:06 +02:00
parent f5e93206f6
commit 41eb3807f7
3 changed files with 5 additions and 23 deletions
-5
View File
@@ -216,12 +216,7 @@ func (o *Ops) Write(op []byte, refs ...interface{}) {
}
func (o *Ops) endAux() {
if !o.inAux {
return
}
o.inAux = false
bo := binary.LittleEndian
bo.PutUint32(o.data[o.auxOff+1:], uint32(o.auxLen))
}
func (o *Ops) pc() pc {