mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-22 11:01:56 -08:00
Change increment and decrement operations according to Golang coding standards
This commit is contained in:
parent
1ca218ec53
commit
99d5ad7857
9 changed files with 25 additions and 25 deletions
|
|
@ -57,7 +57,7 @@ func (pds *PacketData) Size() int {
|
|||
func (pds *PacketData) next() (ret uint64) {
|
||||
if pds.offset < pds.maxsize {
|
||||
ret = uint64(pds.Buf[pds.offset])
|
||||
pds.offset += 1
|
||||
pds.offset++
|
||||
return
|
||||
} else {
|
||||
pds.ok = false
|
||||
|
|
@ -69,7 +69,7 @@ func (pds *PacketData) next() (ret uint64) {
|
|||
func (pds *PacketData) Next8() (ret uint8) {
|
||||
if pds.offset < pds.maxsize {
|
||||
ret = uint8(pds.Buf[pds.offset])
|
||||
pds.offset += 1
|
||||
pds.offset++
|
||||
return
|
||||
} else {
|
||||
pds.ok = false
|
||||
|
|
@ -87,7 +87,7 @@ func (pds *PacketData) append(val uint64) {
|
|||
|
||||
if pds.offset < pds.maxsize {
|
||||
pds.Buf[pds.offset] = byte(val)
|
||||
pds.offset += 1
|
||||
pds.offset++
|
||||
} else {
|
||||
pds.ok = false
|
||||
pds.overshoot++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue