Skip to content

Commit

Permalink
Multiple encoding bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeBalci committed Jul 7, 2020
1 parent 1fad68f commit 362fccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func encode(encoder *sgn.Encoder, payload []byte) ([]byte, error) {

if encoder.EncodingCount > 1 {
encoder.EncodingCount--
return encode(encoder, payload)
return encode(encoder, final)
}

if encoder.SaveRegisters {
Expand Down

0 comments on commit 362fccb

Please sign in to comment.