shithub: 3dee

Download patch

ref: 8e77dfd345218ec6ba8959707443dace32a6799b
parent: d0874baf0a5eccf203c9a06c99400adfc388d35d
author: rodri <rgl@antares-labs.eu>
date: Mon Mar 23 13:04:25 EDT 2026

med,vis: change ItemArray indices from usize to ulongs

--- a/med.c
+++ b/med.c
@@ -243,7 +243,7 @@
 	Primitive l;
 	Vertex v;
 	Point3 p[4];
-	usize vidx0;
+	ulong vidx0;
 	int i, j;
 
 	p[0] = Pt3(0,0,1,1);
@@ -303,7 +303,7 @@
 	Primitive t;
 	Vertex v;
 	Point3 p;
-	usize pidx0, nidx0, vidx0;
+	ulong pidx0, nidx0, vidx0;
 	int i;
 
 	t = mkprim(PTriangle);
--- a/vis.c
+++ b/vis.c
@@ -872,7 +872,7 @@
 		scene->addent(scene, subject);
 		updatebbox(subject);
 
-fprint(2, "%s: %llud prims\n", mdlpath, model->prims->nitems);
+fprint(2, "%s: %lud prims\n", mdlpath, model->prims->nitems);
 
 		if(argc == 0 && texpath != nil){
 			fd = open(texpath, OREAD);
--