From f1c3c4113a0164c3e56ac876921b801ab8f241ee Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sun, 21 Jun 2015 18:50:28 -0400 Subject: [PATCH] make sure to handle raw int's --- primative.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/primative.go b/primative.go index a8b5800..292aea3 100644 --- a/primative.go +++ b/primative.go @@ -71,6 +71,9 @@ func (primative *Primative) UpdateValue(value interface{}) error { primative.valueType = BOOLEAN case float64: primative.valueType = FLOAT + case int: + value = int64(value.(int)) + primative.valueType = INTEGER case int64: primative.valueType = INTEGER case nil: