Commits

Anonymous committed 09ec1a8

HACKING conformance: Use U suffix on literals for unsigned int.

  • Participants
  • Parent commits c548798
  • Branches default
  • Tags growl-1.1.1

Comments (0)

Files changed (1)

Common/Source/NSWindow+Transforms.m

 
 - (NSPoint) windowToScreenCoordinates:(NSPoint)point {
 	NSPoint result;
-	NSRect screenFrame = [[[NSScreen screens] objectAtIndex:0] frame];
+	NSRect screenFrame = [[[NSScreen screens] objectAtIndex:0U] frame];
 
 	// Doesn't work... it looks like the y co-ordinate is not inverted as necessary
 	//result = [self convertBaseToScreen:point];
 
 - (NSPoint) screenToWindowCoordinates:(NSPoint)point { // Untested
 	NSPoint result;
-	NSRect screenFrame = [[[NSScreen screens] objectAtIndex:0] frame];
+	NSRect screenFrame = [[[NSScreen screens] objectAtIndex:0U] frame];
 
 	result.x = point.x - (screenFrame.origin.x + _frame.origin.x);
 	result.y = screenFrame.origin.y + screenFrame.size.height - _frame.origin.y - point.y;