Skip to content

Commit

Permalink
update typecast in varint decoding (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarais committed Feb 18, 2019
1 parent 4304ca6 commit ba06b47
Show file tree
Hide file tree
Showing 70 changed files with 2,735 additions and 2,735 deletions.
2 changes: 1 addition & 1 deletion plugin/unmarshal/unmarshal.go
Expand Up @@ -223,7 +223,7 @@ func (p *unmarshal) decodeVarint(varName string, typName string) {
p.P(`}`)
p.P(`b := dAtA[iNdEx]`)
p.P(`iNdEx++`)
p.P(varName, ` |= (`, typName, `(b) & 0x7F) << shift`)
p.P(varName, ` |= `, typName, `(b&0x7F) << shift`)
p.P(`if b < 0x80 {`)
p.In()
p.P(`break`)
Expand Down
6 changes: 3 additions & 3 deletions test/asymetric-issue125/asym.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 29 additions & 29 deletions test/casttype/combos/both/casttype.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba06b47

Please sign in to comment.