Added big int to uint switch

This commit is contained in:
obscuren 2014-07-22 16:16:00 +02:00
parent 490ca410c0
commit 5d57b78471

View File

@ -68,6 +68,8 @@ func (val *Value) Uint() uint64 {
return uint64(Val) return uint64(Val)
} else if Val, ok := val.Val.([]byte); ok { } else if Val, ok := val.Val.([]byte); ok {
return ReadVarint(bytes.NewReader(Val)) return ReadVarint(bytes.NewReader(Val))
} else if Val, ok := val.Val.(*big.Int); ok {
return Val.Uint64()
} }
return 0 return 0