Skip to content

Commit 6e6f6ba

Browse files
author
ripley
committed
supporess a coupld of compiler warnings
git-svn-id: https://svn.r-project.org/R/trunk@87615 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 1c4f5ee commit 6e6f6ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/grDevices/src/devQuartz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ static int QuartzCreateMask(SEXP mask,
10661066
CGContextRef alpha_bitmap = quartz_bitmap;
10671067

10681068
/* Create a new grayscale bitmap with no alpha channel */
1069-
int stride = CGBitmapContextGetBytesPerRow(alpha_bitmap);
1069+
size_t stride = CGBitmapContextGetBytesPerRow(alpha_bitmap);
10701070
quartz_bitmap = CGBitmapContextCreate(NULL,
10711071
(size_t) devWidth,
10721072
(size_t) devHeight,
@@ -3071,7 +3071,7 @@ void RQuartz_glyph(int n, int *glyphs, double *x, double *y,
30713071
CGContextSetFillColorWithColor(ctx, fillColorRef);
30723072
int i;
30733073
for (i=0; i<n; i++) {
3074-
CGGlyph glyph = glyphs[i];
3074+
CGGlyph glyph = (CGGlyph) glyphs[i];
30753075
CGPoint loc = CGPointMake(x[i], y[i]);
30763076
CTFontDrawGlyphs(ctFont, &glyph, &loc, 1, ctx);
30773077
}

0 commit comments

Comments
 (0)