diff options
Diffstat (limited to 'nexgb/res/res.go')
-rw-r--r-- | nexgb/res/res.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nexgb/res/res.go b/nexgb/res/res.go index be0d6ce..20da54a 100644 --- a/nexgb/res/res.go +++ b/nexgb/res/res.go @@ -86,9 +86,9 @@ func ClientListBytes(buf []byte, list []Client) int { for _, item := range list { structBytes = item.Bytes() copy(buf[b:], structBytes) - b += xgb.Pad(len(structBytes)) + b += len(structBytes) } - return b + return xgb.Pad(b) } type Type struct { @@ -140,9 +140,9 @@ func TypeListBytes(buf []byte, list []Type) int { for _, item := range list { structBytes = item.Bytes() copy(buf[b:], structBytes) - b += xgb.Pad(len(structBytes)) + b += len(structBytes) } - return b + return xgb.Pad(b) } // Skipping definition for base type 'Bool' |