@@ -75,17 +75,17 @@ func (propertyDecoder) decodeInt(prop *sendTableProperty, reader *bit.BitReader)
7575 return int (reader .ReadSignedVarInt32 ())
7676 }
7777 if prop .flags .hasFlagSet (propFlagUnsigned ) {
78- return int (reader .ReadInt (uint ( prop .numberOfBits ) ))
78+ return int (reader .ReadInt (prop .numberOfBits ))
7979 }
80- return reader .ReadSignedInt (uint ( prop .numberOfBits ) )
80+ return reader .ReadSignedInt (prop .numberOfBits )
8181}
8282
8383func (propertyDecoder ) decodeFloat (prop * sendTableProperty , reader * bit.BitReader ) float32 {
8484 if prop .flags & specialFloatFlags != 0 {
8585 return propDecoder .decodeSpecialFloat (prop , reader )
8686 }
8787
88- dwInterp := reader .ReadInt (uint ( prop .numberOfBits ) )
88+ dwInterp := reader .ReadInt (prop .numberOfBits )
8989 return prop .lowValue + ((prop .highValue - prop .lowValue ) * (float32 (dwInterp ) / float32 ((int (1 )<< uint (prop .numberOfBits ))- 1 )))
9090}
9191
@@ -105,11 +105,11 @@ func (propertyDecoder) decodeSpecialFloat(prop *sendTableProperty, reader *bit.B
105105 } else if prop .flags .hasFlagSet (propFlagNormal ) {
106106 return propDecoder .readBitNormal (reader )
107107 } else if prop .flags .hasFlagSet (propFlagCellCoord ) {
108- return propDecoder .readBitCellCoord (reader , uint ( prop .numberOfBits ) , false , false )
108+ return propDecoder .readBitCellCoord (reader , prop .numberOfBits , false , false )
109109 } else if prop .flags .hasFlagSet (propFlagCellCoordLowPrecision ) {
110- return propDecoder .readBitCellCoord (reader , uint ( prop .numberOfBits ) , true , false )
110+ return propDecoder .readBitCellCoord (reader , prop .numberOfBits , true , false )
111111 } else if prop .flags .hasFlagSet (propFlagCellCoordIntegral ) {
112- return propDecoder .readBitCellCoord (reader , uint ( prop .numberOfBits ) , false , true )
112+ return propDecoder .readBitCellCoord (reader , prop .numberOfBits , false , true )
113113 }
114114 panic (fmt .Sprintf ("Unexpected special float flag (Flags %v)" , prop .flags ))
115115}
@@ -196,7 +196,7 @@ func (propertyDecoder) readBitNormal(reader *bit.BitReader) float32 {
196196 return res
197197}
198198
199- func (propertyDecoder ) readBitCellCoord (reader * bit.BitReader , bits uint , isIntegral bool , isLowPrecision bool ) float32 {
199+ func (propertyDecoder ) readBitCellCoord (reader * bit.BitReader , bits int , isIntegral bool , isLowPrecision bool ) float32 {
200200 var intVal , fractVal int
201201 var res float32
202202
@@ -245,7 +245,7 @@ func (propertyDecoder) decodeVector(prop *sendTableProperty, reader *bit.BitRead
245245func (propertyDecoder ) decodeArray (fProp * FlattenedPropEntry , reader * bit.BitReader ) []PropValue {
246246 numElement := fProp .prop .numberOfElements
247247
248- var numBits uint = 1
248+ numBits : = 1
249249
250250 for maxElements := (numElement >> 1 ); maxElements != 0 ; maxElements = maxElements >> 1 {
251251 numBits ++
0 commit comments