git: d03add9f2326 - main - audio/sc3-plugins: Unbreak by fixed invalid C++ chained comparison

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 10 Jul 2026 18:20:36 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d03add9f2326adb26832d92dbd9d270f63facc1b

commit d03add9f2326adb26832d92dbd9d270f63facc1b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-10 18:19:39 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-10 18:19:39 +0000

    audio/sc3-plugins: Unbreak by fixed invalid C++ chained comparison
    
    Reported by:    fallout
---
 .../sc3-plugins/files/patch-source_NCAnalysisUGens_SMS.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/audio/sc3-plugins/files/patch-source_NCAnalysisUGens_SMS.cpp b/audio/sc3-plugins/files/patch-source_NCAnalysisUGens_SMS.cpp
new file mode 100644
index 000000000000..97529225dc19
--- /dev/null
+++ b/audio/sc3-plugins/files/patch-source_NCAnalysisUGens_SMS.cpp
@@ -0,0 +1,14 @@
+-- Fix C++ chained comparison that clang now rejects with -Werror=parentheses.
+-- Upstream code uses 0<=bufnum<=world->mNumSndBufs which is invalid in C++.
+-- Reference: FreeBSD package build failure for main-amd64-default.
+--- source/NCAnalysisUGens/SMS.cpp.orig	2026-07-10 03:44:47 UTC
++++ source/NCAnalysisUGens/SMS.cpp
+@@ -439,7 +439,7 @@ void SMS_Ctor(SMS* unit) {
+ 
+ 		int bufnum= (int)fbufnum;
+ 
+-	if(0<=bufnum<= world->mNumSndBufs) {
++	if(0<=bufnum && bufnum<= world->mNumSndBufs) {
+ 		SndBuf * buf;
+ 
+ 		buf = world->mSndBufs + bufnum;