shithub: tinygl

Download patch

ref: 7603313dc1861f9c23fad74f841219685d5bd70f
parent: 587c48547434b3cc2019052bf8b7c2c5c91d5d05
author: MHS <gek@katherine>
date: Mon Apr 26 10:27:13 EDT 2021

Automatic commit.

--- a/SDL_Examples/game.c
+++ b/SDL_Examples/game.c
@@ -346,7 +346,7 @@
 			abort();
 		} else {
 			m = tobj_tomodel(&omodel);
-			printf("\nHas %d points.\n", m.npoints);
+			printf("\nHas %ld points.\n", m.npoints);
 			modelDisplayList = createModelDisplayList(m.d, m.npoints, m.c, m.n, m.t);
 			freemodel(&m);
 		}
--- a/SDL_Examples/model.c
+++ b/SDL_Examples/model.c
@@ -448,7 +448,7 @@
 			puts("\nERROR! No positions in model. Aborting...\n");
 		} else {
 			m = tobj_tomodel(&omodel);
-			printf("\nHas %d points.\n", m.npoints);
+			printf("\nHas %ld points.\n", m.npoints);
 			if (!testingModelArrays) {
 				modelDisplayList = createModelDisplayList(m.d, m.npoints, m.c, m.n, m.t);
 				dlExists = 1;