Skip to content

Commit 4685bd4

Browse files
committed
fix getMaxSCOLength to take into account MQSCO_VERSION_7
1 parent 820a4af commit 4685bd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ibmmq/mqiMQCNO.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ size_t getMaxCDLength() {
180180
181181
size_t getMaxSCOLength() {
182182
size_t l;
183-
#if defined(MQSCO_VERSION_6)
183+
#if defined(MQSCO_VERSION_7)
184+
l = MQSCO_LENGTH_7;
185+
#elif defined(MQSCO_VERSION_6)
184186
l = MQSCO_LENGTH_6;
185187
#else
186188
l = MQSCO_LENGTH_5; // The minimum supported here

0 commit comments

Comments
 (0)