Skip to content

Commit b813a3f

Browse files
author
Stephen Asbury
committed
Fixed issue with headers of type int32
Fixes #83
1 parent 80a07be commit b813a3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibmmq/mqi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,8 @@ func (handle *MQMessageHandle) InqMP(goimpo *MQIMPO, gopd *MQPD, name string) (s
12321232
p := (*C.MQBYTE)(propertyPtr)
12331233
propertyValue = (int16)(*p)
12341234
case C.MQTYPE_INT32:
1235-
p := (*C.MQINT16)(propertyPtr)
1236-
propertyValue = (int16)(*p)
1235+
p := (*C.MQINT32)(propertyPtr)
1236+
propertyValue = (int32)(*p)
12371237
case C.MQTYPE_INT64:
12381238
p := (*C.MQINT64)(propertyPtr)
12391239
propertyValue = (int64)(*p)

0 commit comments

Comments
 (0)