commit 6d93884d85ec5d3d40dbdcb4b42ff6020378d99a
parent f80279e1f23fcb1dde981cfc99d0261875f6fca8
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Thu,  8 Jun 2023 22:11:49 -0700
(circle128) Minor opt
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/etc/circle128/circle128.c b/etc/circle128/circle128.c
@@ -40,13 +40,15 @@ sint(char *s)
 int
 main(int argc, char *argv[])
 {
-	int seg = 12, offset = seg / 4, i;
-	double segf = (double)seg;
+	int seg, offset, i;
+	double segf;
 	if(argc < 2) {
 		printf("usage: circle128 length\n", argc);
 		return 1;
 	}
 	seg = sint(argv[1]);
+	segf = (double)seg;
+	offset = seg / 4;
 	printf("%d points on a circle128:\n\n", seg);
 	for(i = 0; i < seg; ++i) {
 		double cx = 128, cy = 128, r = 128;