diff options
| author | Andrew Gallant <[email protected]> | 2013-12-28 09:33:09 -0500 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-12-28 09:33:09 -0500 |
| commit | 34dd98df049a0a6ecf661ff9fdfe31292688040a (patch) | |
| tree | b2cbe9e643ec6271bbcbdf8c1030a56575d57109 /xfixes/xfixes.go | |
| parent | 9071499d31a04ae4e2e545e2f2227545d32187a4 (diff) | |
When writing, don't pad the length of bytes produced from inner
structs/unions. Each type should take care of its own padding.
Close #14.
Diffstat (limited to 'xfixes/xfixes.go')
| -rw-r--r-- | xfixes/xfixes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfixes/xfixes.go b/xfixes/xfixes.go index 0424585..a34df54 100644 --- a/xfixes/xfixes.go +++ b/xfixes/xfixes.go @@ -1801,7 +1801,7 @@ func invertRegionRequest(c *xgb.Conn, Source Region, Bounds xproto.Rectangle, De { structBytes := Bounds.Bytes() copy(buf[b:], structBytes) - b += xgb.Pad(len(structBytes)) + b += len(structBytes) } xgb.Put32(buf[b:], uint32(Destination)) |
