From 92d8e84a6d5644e445f5a16242413f4fcb1d9545 Mon Sep 17 00:00:00 2001 From: Matthew Borden Date: Thu, 11 Apr 2013 20:37:30 +1000 Subject: [PATCH] Fixed Error that prevented NPM install on mac. NPM spat out a error that there was only 2 params in DGIFOPEN. I added the third, an error interger. --- src/Image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image.cc b/src/Image.cc index 6938884..98fdb2c 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -497,7 +497,7 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) { gif_data_t gifd = { buf, len, 0 }; - if ((gif = DGifOpen((void*) &gifd, read_gif_from_memory)) == NULL) + if ((gif = DGifOpen((void*) &gifd, read_gif_from_memory, (int*) i)) == NULL) return CAIRO_STATUS_READ_ERROR; if (GIF_OK != DGifSlurp(gif)) {