From 4685bd4c35fdd1f45d6bedbb55b359b8df1959d8 Mon Sep 17 00:00:00 2001 From: Louis Sobel Date: Mon, 23 Dec 2024 18:28:46 -0500 Subject: [PATCH 1/2] fix getMaxSCOLength to take into account MQSCO_VERSION_7 --- ibmmq/mqiMQCNO.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ibmmq/mqiMQCNO.go b/ibmmq/mqiMQCNO.go index c4864dc..308d646 100644 --- a/ibmmq/mqiMQCNO.go +++ b/ibmmq/mqiMQCNO.go @@ -180,7 +180,9 @@ size_t getMaxCDLength() { size_t getMaxSCOLength() { size_t l; -#if defined(MQSCO_VERSION_6) +#if defined(MQSCO_VERSION_7) + l = MQSCO_LENGTH_7; +#elif defined(MQSCO_VERSION_6) l = MQSCO_LENGTH_6; #else l = MQSCO_LENGTH_5; // The minimum supported here From d6ac50b821a333d14bda1cdbdc076a590f1b0cc2 Mon Sep 17 00:00:00 2001 From: Louis Sobel Date: Mon, 23 Dec 2024 18:32:15 -0500 Subject: [PATCH 2/2] spaces --- ibmmq/mqiMQCNO.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibmmq/mqiMQCNO.go b/ibmmq/mqiMQCNO.go index 308d646..e7a46c9 100644 --- a/ibmmq/mqiMQCNO.go +++ b/ibmmq/mqiMQCNO.go @@ -181,7 +181,7 @@ size_t getMaxCDLength() { size_t getMaxSCOLength() { size_t l; #if defined(MQSCO_VERSION_7) - l = MQSCO_LENGTH_7; + l = MQSCO_LENGTH_7; #elif defined(MQSCO_VERSION_6) l = MQSCO_LENGTH_6; #else