aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xgbgen/size.go')
-rw-r--r--nexgb/xgbgen/size.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xgbgen/size.go b/nexgb/xgbgen/size.go
index d8d3ac3..8836892 100644
--- a/nexgb/xgbgen/size.go
+++ b/nexgb/xgbgen/size.go
@@ -11,7 +11,7 @@ type Size struct {
// newFixedSize creates a new Size with some fixed and known value.
func newFixedSize(fixed uint) Size {
- return Size{&Value{v: fixed}}
+ return Size{&Value{v: int(fixed)}}
}
// newExpressionSize creates a new Size with some expression.