From d988eb7b39deb3b5c1052e2550d7110d1e2d734a Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 17 May 2017 12:06:53 -0700 Subject: [PATCH] tiffdec,MyRead: quiet -Wshorten-64-to-32 warning Change-Id: I7e2c7a9b80278b3056151c74a939b0f55bbbc90c --- imageio/tiffdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageio/tiffdec.c b/imageio/tiffdec.c index 1264391b..81e331d2 100644 --- a/imageio/tiffdec.c +++ b/imageio/tiffdec.c @@ -107,7 +107,7 @@ static void MyUnmapFile(thandle_t opaque, void* base, toff_t size) { static tsize_t MyRead(thandle_t opaque, void* dst, tsize_t size) { MyData* const my_data = (MyData*)opaque; if (my_data->pos + size > my_data->size) { - size = my_data->size - my_data->pos; + size = (tsize_t)(my_data->size - my_data->pos); } if (size > 0) { memcpy(dst, my_data->data + my_data->pos, size);