shithub: pplay

Download patch

ref: c5626b88e19926b1a768ae851aed751dc4b9a022
parent: 7b2f152235e1a556bb3483076c9ca4b42e2f187d
author: qwx <[email protected]>
date: Tue Feb 7 04:16:43 EST 2023

don't use ULL for usize on 32bit

temporary fix; .at should be nuked instead

--- a/cmd.c
+++ b/cmd.c
@@ -40,7 +40,7 @@
 	dot.to = to;
 	if(dot.pos < from || dot.pos >= to)
 		dot.pos = from;
-	dot.at = -1ULL;
+	dot.at = -1;
 }
 
 int
@@ -132,7 +132,7 @@
 		fprint(2, "insert: nothing to paste\n");
 		return -1;
 	}
-	if(dot.at == -1ULL){
+	if(dot.at == -1){
 		fprint(2, "insert: nowhere to paste\n");
 		return -1;
 	}
@@ -146,7 +146,7 @@
 	}
 	setdot(&dot, nil);
 	dot.pos = c2p(left->right);
-	dot.at = -1ULL;
+	dot.at = -1;
 	dprint(nil, "end\n");
 	return 1;
 }
--- a/draw.c
+++ b/draw.c
@@ -184,7 +184,7 @@
 		seprint(s, s+sizeof s, " ↺ %τ - %τ", dot.from, dot.to);
 		p = string(screen, p, col[Cloop], ZP, font, s);
 	}
-	if(dot.at != -1ULL){
+	if(dot.at != -1){
 		seprint(s, s+sizeof s, " ‡ %τ", dot.at);
 		p = string(screen, p, col[Cins], ZP, font, s);
 	}