Mercurial > hg > dmlib
comparison tools/libgfx.c @ 2572:92b93a12c014
Make some casts explicit instead of implicit, fixes some -pedantic warnings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 Mar 2022 22:36:48 +0200 |
parents | c6ee41fd98dd |
children | 9807ae37ad69 |
comparison
equal
deleted
inserted
replaced
2571:bb44c48cffac | 2572:92b93a12c014 |
---|---|
1113 info_ptr = png_create_info_struct(png_ptr); | 1113 info_ptr = png_create_info_struct(png_ptr); |
1114 if (info_ptr == NULL) | 1114 if (info_ptr == NULL) |
1115 { | 1115 { |
1116 res = dmError(DMERR_INIT_FAIL, | 1116 res = dmError(DMERR_INIT_FAIL, |
1117 "PNG: png_create_info_struct(%p) failed.\n", | 1117 "PNG: png_create_info_struct(%p) failed.\n", |
1118 png_ptr); | 1118 (void *) png_ptr); |
1119 goto error; | 1119 goto error; |
1120 } | 1120 } |
1121 | 1121 |
1122 if (setjmp(png_jmpbuf(png_ptr))) | 1122 if (setjmp(png_jmpbuf(png_ptr))) |
1123 { | 1123 { |
1238 info_ptr = png_create_info_struct(png_ptr); | 1238 info_ptr = png_create_info_struct(png_ptr); |
1239 if (info_ptr == NULL) | 1239 if (info_ptr == NULL) |
1240 { | 1240 { |
1241 res = dmError(DMERR_INIT_FAIL, | 1241 res = dmError(DMERR_INIT_FAIL, |
1242 "PNG: png_create_info_struct(%p) failed.\n", | 1242 "PNG: png_create_info_struct(%p) failed.\n", |
1243 png_ptr); | 1243 (void *) png_ptr); |
1244 goto error; | 1244 goto error; |
1245 } | 1245 } |
1246 | 1246 |
1247 if (setjmp(png_jmpbuf(png_ptr))) | 1247 if (setjmp(png_jmpbuf(png_ptr))) |
1248 { | 1248 { |