Skip to content

Commit

Permalink
supporess a coupld of compiler warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87615 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Jan 22, 2025
1 parent 1c4f5ee commit 6e6f6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/grDevices/src/devQuartz.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ static int QuartzCreateMask(SEXP mask,
CGContextRef alpha_bitmap = quartz_bitmap;

/* Create a new grayscale bitmap with no alpha channel */
int stride = CGBitmapContextGetBytesPerRow(alpha_bitmap);
size_t stride = CGBitmapContextGetBytesPerRow(alpha_bitmap);
quartz_bitmap = CGBitmapContextCreate(NULL,
(size_t) devWidth,
(size_t) devHeight,
Expand Down Expand Up @@ -3071,7 +3071,7 @@ void RQuartz_glyph(int n, int *glyphs, double *x, double *y,
CGContextSetFillColorWithColor(ctx, fillColorRef);
int i;
for (i=0; i<n; i++) {
CGGlyph glyph = glyphs[i];
CGGlyph glyph = (CGGlyph) glyphs[i];
CGPoint loc = CGPointMake(x[i], y[i]);
CTFontDrawGlyphs(ctFont, &glyph, &loc, 1, ctx);
}
Expand Down

0 comments on commit 6e6f6ba

Please sign in to comment.