aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/devil/jasper-4.patch
blob: 2373a0fffde99ddc9b34062ae2ff8ad17f72cc46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/DevIL/src-IL/src/il_jp2.cpp b/DevIL/src-IL/src/il_jp2.cpp
index a419c1484..7b7e3cb12 100644
--- a/DevIL/src-IL/src/il_jp2.cpp
+++ b/DevIL/src-IL/src/il_jp2.cpp
@@ -314,9 +314,9 @@ ILboolean iLoadJp2Internal(jas_stream_t	*Stream, ILimage *Image)
 
 
 #ifdef __APPLE__
-static int iJp2_file_read(void *obj, char *buf, unsigned int cnt)
+static ssize_t iJp2_file_read(void *obj, char *buf, size_t cnt)
 #else
-static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned int cnt)
+static ssize_t iJp2_file_read(jas_stream_obj_t *obj, char *buf, size_t cnt)
 #endif
 {
 	obj;
@@ -324,9 +324,9 @@ static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned int cnt)
 }
 
 #ifdef __APPLE__
-static int iJp2_file_write(void *obj, const char *buf, unsigned int cnt)
+static ssize_t iJp2_file_write(void *obj, const char *buf, size_t cnt)
 #else
-static int iJp2_file_write(jas_stream_obj_t *obj, const char *buf, unsigned int cnt)
+static ssize_t iJp2_file_write(jas_stream_obj_t *obj, const char *buf, size_t cnt)
 #endif
 {
 	obj;