summaryrefslogtreecommitdiff
path: root/src/fl_draw_image_mac.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_draw_image_mac.cxx')
-rw-r--r--src/fl_draw_image_mac.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx
index be4427324..27d3b6312 100644
--- a/src/fl_draw_image_mac.cxx
+++ b/src/fl_draw_image_mac.cxx
@@ -165,8 +165,8 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
}
}
#elif defined(__APPLE_QUARTZ__)
- void *array = buf;
- uchar *tmpBuf;
+ const void *array = buf;
+ uchar *tmpBuf = 0;
if (cb) {
tmpBuf = new uchar[ H*W*delta ];
for (int i=0; i<H; i++) {