shithub: etoys

Download patch

ref: b3b41bdae9762fe39ebe567d15cbd9e484e83c9d
parent: 1600d38f2374f2418c124feec565f50cf7c8f7c4
author: rodri <rgl@antares-labs.eu>
date: Mon Jun 9 12:54:59 EDT 2025

beatlet: fix precedence typo

--- a/beatlet.c
+++ b/beatlet.c
@@ -79,7 +79,7 @@
 
 	t0 = nsec();
 	while(readn(fd, ss, 2*2*NSAMP) > 0){
-		min = 1<<15 - 1;
+		min = (1<<15) - 1;
 		max = 0;
 		for(i = 0; i < nelem(ss); i++){
 			s = (s16int)(ss[i] & 0xFFFF) + (s16int)(ss[i]>>16 & 0xFFFF);
--