value: Make sure to cast int range values to guints before storing them
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Jun 2014 07:23:56 +0000 (09:23 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 19 Jun 2014 07:33:54 +0000 (09:33 +0200)
commit9b7da39b68544513d1483d19cf9e74eb97aba4ca
tree2c0032968db96d703784f80107e31f0fb091d3c7
parent00ed93780dba49ca2d9208e1b2d734617f691ff7
value: Make sure to cast int range values to guints before storing them

Otherwise negative values will sets all of the 64 bits due to two's
complement's definition of negative values.

Also add a test for negative int ranges.
gst/gstvalue.c
tests/check/gst/gstvalue.c