summaryrefslogtreecommitdiff
path: root/spinbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'spinbox.go')
-rw-r--r--spinbox.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/spinbox.go b/spinbox.go
index a34c3e9..a1dfc3b 100644
--- a/spinbox.go
+++ b/spinbox.go
@@ -38,7 +38,7 @@ func (s *Spinbox) Value() int {
// SetValue sets the Spinbox's current value to value.
func (s *Spinbox) SetValue(value int) {
- C.uiSpinboxSetValue(s.s, C.intmax_t(value))
+ C.uiSpinboxSetValue(s.s, C.int(value))
}
// OnChanged registers f to be run when the user changes the value