Skip to content

Commit 712f234

Browse files
author
jipeng
committed
fix linux build error
1 parent bb05990 commit 712f234

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/image_loader/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ libpsx_image_la_SOURCES = \
1818

1919
libpsx_image_la_LDFLAGS = -no-undefined -release $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
2020

21-
libpsx_image_la_LIBADD = -lpicasso -ldl
21+
libpsx_image_la_LIBADD = ../../src/libpicasso.la -ldl
2222

ext/image_loader/gif/gif_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static int get_gif_delay_time(GifFileType *gif, int frame)
129129
ExtensionBlock *ext = gif->SavedImages[frame].ExtensionBlocks;
130130
int len = gif->SavedImages[frame].ExtensionBlockCount;
131131
for (x = 0; x < len; ++x, ++ext) {
132-
if ((ext->Function == GRAPHICS_EXT_FUNC_CODE)) {
132+
if (ext->Function == GRAPHICS_EXT_FUNC_CODE) {
133133
return ((ext->Bytes[2] << 8) | (ext->Bytes[1])) * 10; // ms
134134
}
135135
}

ext/image_loader/psx_image_loader.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ psx_image* PICAPI psx_image_create_from_data(ps_byte* data, ps_color_format fmt,
102102
return NULL;
103103
}
104104

105-
if (fmt < 0 || fmt >= COLOR_FORMAT_UNKNOWN) {
105+
if ((int)fmt < 0 || fmt >= COLOR_FORMAT_UNKNOWN) {
106106
if (err_code)
107107
*err_code = S_BAD_PARAMS;
108108
return NULL;

0 commit comments

Comments
 (0)