--- ray/src/common/mesh.c 2010/05/01 21:49:42 2.21 +++ ray/src/common/mesh.c 2010/12/15 17:27:52 2.22 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mesh.c,v 2.21 2010/05/01 21:49:42 greg Exp $"; +static const char RCSid[] = "$Id: mesh.c,v 2.22 2010/12/15 17:27:52 greg Exp $"; #endif /* * Mesh support routines @@ -620,7 +620,7 @@ FILE *fp; t2cnt += pp->nj2tris; } fprintf(fp, "Mesh statistics:\n"); - fprintf(fp, "\t%ld materials\n", ms->nmats); + fprintf(fp, "\t%ld materials\n", (long)ms->nmats); fprintf(fp, "\t%d patches (%.2f MBytes)\n", ms->npatches, (ms->npatches*sizeof(MESHPATCH) + vcnt*3*sizeof(uint32) +