re PR rtl-optimization/46366 (gcc.target/i386/pr45352-2.c failed)
PR rtl-optimization/46366 * gcc.target/i386/pr45352-2.c: Silence warnings by using appropriate casts. From-SVN: r166798
This commit is contained in:
parent
338ae1c163
commit
d61c486744
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -40,9 +40,10 @@ typedef struct
|
|||
{
|
||||
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)
|
||||
{
|
||||
|
@ -55,7 +56,7 @@ 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;
|
||||
|
@ -90,7 +91,7 @@ void
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue