+2010-11-16 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/46366
+ * gcc.target/i386/pr45352-2.c: Silence warnings by using appropriate
+ casts.
+
2010-11-16 Richard Guenther <rguenther@suse.de>
* gcc.dg/tree-ssa/ssa-fre-30.c: New testcase.
{
int xvmc_last_slice_code;}
mpeg2dec_accel_t;
-static bitstream_init (picture_t * picture, void *start)
+static int bitstream_init (picture_t * picture, void *start)
{
picture->bitstream_ptr = start;
+ return (int) (long) start;
}
static slice_xvmc_init (picture_t * picture, int code)
{
picture->f_motion.ref
[0]
[0]
- = forward_reference_frame->base + (offset ? picture->pitches[0] : 0);
+ = (char) (long) (forward_reference_frame->base + (offset ? picture->pitches[0] : 0));
picture->f_motion.ref[0][1] = (offset);
if (picture->picture_structure)
picture->pitches[0] <<= picture->pitches[1] <<= 1;
mpeg2_xvmc_slice
(mpeg2dec_accel_t * accel, picture_t * picture, int code, uint8_t buffer,int mba_inc)
{
- xine_xvmc_t * xvmc = bitstream_init (picture, buffer);
+ xine_xvmc_t * xvmc = (xine_xvmc_t *) (long) bitstream_init (picture, (void *) (long) buffer);
slice_xvmc_init (picture, code);
while (1)
{