Re: [go-nuts] compress/flate

2020-07-20 Thread Nick Keets
Updating those 2 lines would be the least of our problems if this value ever changes. On Fri, Jul 17, 2020 at 12:33 PM Jan Mercl <0xj...@gmail.com> wrote: > On Fri, Jul 17, 2020 at 11:23 AM Heisenberg wrote: > > > > Constant definition in token.go: > > > > literalType = 0 << 30 > > > > The only

Re: [go-nuts] compress/flate

2020-07-17 Thread Jan Mercl
On Fri, Jul 17, 2020 at 11:23 AM Heisenberg wrote: > > Constant definition in token.go: > > literalType = 0 << 30 > > The only use I see is: > > func (t token) literal() uint32 { return uint32(t - literalType) } > func literalToken(literal uint32) token { return token(literalType + literal) > }

[go-nuts] compress/flate

2020-07-17 Thread Heisenberg
Constant definition in token.go: literalType = 0 << 30 The only use I see is: - *func (t token) literal() uint32 { return uint32(t - literalType) }* - *func literalToken(literal uint32) token { return token(literalType + literal) } * I don't know what the purpose of this writing