Skip to content

Commit

Permalink
graphics/xpaint: Fix build in current (llvm15)
Browse files Browse the repository at this point in the history
PR:		270930
Reported by:	freebsd@oldach.net (maintainer)

(cherry picked from commit f61b4dc)
  • Loading branch information
Helge Oldach authored and fernape committed May 8, 2023
1 parent 4036fe2 commit 9344883
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions graphics/xpaint/files/patch-rw_readWriteJP2K.c
@@ -0,0 +1,11 @@
--- rw/readWriteJP2K.c.orig 2023-05-08 13:59:30 UTC
+++ rw/readWriteJP2K.c
@@ -69,7 +69,7 @@ ReadJP2K(char *file_name)
int i, j, k, l, w, h, w0, nc, step, delta, shift, bpp;
int *src, codec = CODEC_JP2;

- if ((fp = fopen(file_name, "rb")) == NULL) return (-1);
+ if ((fp = fopen(file_name, "rb")) == NULL) return (Image *)(-1);

/* Read in the entire file */
fseek(fp, 0, SEEK_END);

0 comments on commit 9344883

Please sign in to comment.