shithub: qk1

Download patch

ref: 3f506a05d119fed79b2663126321297458b25966
parent: 78fe6348a53f18d6d477366590d07b75d6833dc3
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Oct 9 20:49:09 EDT 2023

pr_exec: print *which* builtin number is invalid

--- a/pr_exec.c
+++ b/pr_exec.c
@@ -608,7 +608,7 @@
 		{	// negative statements are built in functions
 			i = -newf->first_statement;
 			if (i >= pr_numbuiltins)
-				PR_RunError ("Bad builtin call number");
+				PR_RunError ("Bad builtin call number %d", i);
 			pr_builtins[i] ();
 			break;
 		}