Kaynağa Gözat

Fix counters

Sasha Klizhentas 12 yıl önce
ebeveyn
işleme
1bb1a42786
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      marshal.go

+ 1 - 1
marshal.go

@@ -37,7 +37,7 @@ func Marshal(info *TypeInfo, value interface{}) ([]byte, error) {
 		return marshalBool(info, value)
 	case TypeInt:
 		return marshalInt(info, value)
-	case TypeBigInt:
+	case TypeBigInt, TypeCounter:
 		return marshalBigInt(info, value)
 	case TypeFloat:
 		return marshalFloat(info, value)