summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-11 23:21:30 -0400
committerPietro Gagliardi <[email protected]>2018-08-11 23:21:30 -0400
commitf0fb0f4f7e36b70c61a6cbcc6a2875946a6beec2 (patch)
tree4f14157da996eec770c12a104708084a1866b555 /box.go
parentacdea005c009afd23638cc640275166887622bef (diff)
Un-intmax_t'd everything.
Diffstat (limited to 'box.go')
-rw-r--r--box.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/box.go b/box.go
index a0cfb77..486456e 100644
--- a/box.go
+++ b/box.go
@@ -67,8 +67,7 @@ func (b *Box) Append(child Control, stretchy bool) {
// Delete deletes the nth control of the Box.
func (b *Box) Delete(n int) {
b.children = append(b.children[:n], b.children[n + 1:]...)
- // TODO why is this uintmax_t instead of intmax_t
- C.uiBoxDelete(b.b, C.uintmax_t(n))
+ C.uiBoxDelete(b.b, C.int(n))
}
// Padded returns whether there is space between each control