Eliminate a few warnings

This commit is contained in:
nigel 2003-04-02 00:37:34 +00:00
parent 21c4e9da5b
commit b97f09221e

View File

@ -396,8 +396,8 @@ static NSPoint mouse; // Previous/current mouse location
mouse = location; mouse = location;
int mouseY = y - y * mouse.y / [self height]; int mouseY = y - (int) (y * mouse.y / [self height]);
int mouseX = x * mouse.x / [self width]; int mouseX = (int) (x * mouse.x / [self width]);
// If the view was not resizable, then this would be simpler: // If the view was not resizable, then this would be simpler:
// int mouseY = y - (int) mouse.y; // int mouseY = y - (int) mouse.y;
// int mouseX = (int) mouse.x; // int mouseX = (int) mouse.x;
@ -483,10 +483,10 @@ static NSPoint mouse; // Previous/current mouse location
#ifdef NSBITMAP #ifdef NSBITMAP
= [bitmap bitmapData]; = [bitmap bitmapData];
#else #else
= bitmap; = (unsigned char *) bitmap;
#endif #endif
memset(data, val, numBytes); memset(data, val, (long unsigned)numBytes);
} }
- (void) blacken // Set bitmap black - (void) blacken // Set bitmap black