# HG changeset patch # User reimar # Date 1280056781 0 # Node ID 923b5da53f656d9e018a3c9a398602de12452527 # Parent 781904280cd719ffa7693829d3cd5cf7c26becde Declare variables with proper types to avoid dangerous pointer casts. diff -r 781904280cd7 -r 923b5da53f65 libvo/vo_corevideo.m --- a/libvo/vo_corevideo.m Sun Jul 25 11:18:04 2010 +0000 +++ b/libvo/vo_corevideo.m Sun Jul 25 11:19:41 2010 +0000 @@ -685,8 +685,7 @@ */ - (void)reshape { - uint32_t d_width; - uint32_t d_height; + int d_width, d_height; NSRect frame = [self frame]; vo_dwidth = frame.size.width; @@ -702,7 +701,7 @@ //set texture frame if(vo_keepaspect) { - aspect( (int *)&d_width, (int *)&d_height, A_WINZOOM); + aspect(&d_width, &d_height, A_WINZOOM); textureFrame = NSMakeRect((vo_dwidth - d_width) / 2, (vo_dheight - d_height) / 2, d_width, d_height); }