changeset 31739:923b5da53f65

Declare variables with proper types to avoid dangerous pointer casts.
author reimar
date Sun, 25 Jul 2010 11:19:41 +0000
parents 781904280cd7
children ede53d2a08eb
files libvo/vo_corevideo.m
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}