[Commits] SDL_image: Fixed iOS build warnings

libsdl.org revision control commits-owner at libsdl.org
Tue Dec 12 22:19:02 PST 2017


details:   https://hg.libsdl.org/SDL_image/rev/21559520f1be
changeset: 551:21559520f1be
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Dec 12 22:18:45 2017 -0800
description:
Fixed iOS build warnings

diffstat:

 nanosvg.h     |  2 +-
 nanosvgrast.h |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r b5bcb9cb9f6d -r 21559520f1be nanosvg.h
--- a/nanosvg.h	Tue Dec 12 22:18:18 2017 -0800
+++ b/nanosvg.h	Tue Dec 12 22:18:45 2017 -0800
@@ -1148,7 +1148,7 @@
 	if (*cur == 'e' || *cur == 'E') {
 		int expPart = 0;
 		cur++; // skip 'E'
-		expPart = strtol(cur, &end, 10); // Parse digit sequence with sign
+		expPart = (int)strtol(cur, &end, 10); // Parse digit sequence with sign
 		if (cur != end) {
 			res *= pow(10.0, (double)expPart);
 		}
diff -r b5bcb9cb9f6d -r 21559520f1be nanosvgrast.h
--- a/nanosvgrast.h	Tue Dec 12 22:18:18 2017 -0800
+++ b/nanosvgrast.h	Tue Dec 12 22:18:45 2017 -0800
@@ -44,7 +44,7 @@
 */
 
 // Allocated rasterizer context.
-NSVGrasterizer* nsvgCreateRasterizer();
+NSVGrasterizer* nsvgCreateRasterizer(void);
 
 // Rasterizes SVG image, returns RGBA image (non-premultiplied alpha)
 //   r - pointer to rasterizer context


More information about the commits mailing list