From b97f09221e6c56846169d630c4c694c499d3d30c Mon Sep 17 00:00:00 2001 From: nigel <> Date: Wed, 2 Apr 2003 00:37:34 +0000 Subject: [PATCH] Eliminate a few warnings --- BasiliskII/src/MacOSX/EmulatorView.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BasiliskII/src/MacOSX/EmulatorView.mm b/BasiliskII/src/MacOSX/EmulatorView.mm index 227961f0..e7dacbf2 100644 --- a/BasiliskII/src/MacOSX/EmulatorView.mm +++ b/BasiliskII/src/MacOSX/EmulatorView.mm @@ -396,8 +396,8 @@ static NSPoint mouse; // Previous/current mouse location mouse = location; - int mouseY = y - y * mouse.y / [self height]; - int mouseX = x * mouse.x / [self width]; + int mouseY = y - (int) (y * mouse.y / [self height]); + int mouseX = (int) (x * mouse.x / [self width]); // If the view was not resizable, then this would be simpler: // int mouseY = y - (int) mouse.y; // int mouseX = (int) mouse.x; @@ -483,10 +483,10 @@ static NSPoint mouse; // Previous/current mouse location #ifdef NSBITMAP = [bitmap bitmapData]; #else - = bitmap; + = (unsigned char *) bitmap; #endif - memset(data, val, numBytes); + memset(data, val, (long unsigned)numBytes); } - (void) blacken // Set bitmap black