summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
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