Skip to content

Commit 888f08c

Browse files
committed
Datatype error for Windows
1 parent f9e53bf commit 888f08c

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
@@ -1249,11 +1249,11 @@ func (handle *MQMessageHandle) InqMP(goimpo *MQIMPO, gopd *MQPD, name string) (s
12491249
propertyValue = true
12501250
}
12511251
case C.MQTYPE_STRING:
1252-
propertyValue = C.GoStringN((*C.char)(propertyPtr), propertyLength)
1252+
propertyValue = C.GoStringN((*C.char)(propertyPtr), (C.int)(propertyLength))
12531253
case C.MQTYPE_BYTE_STRING:
12541254
ba := make([]byte, propertyLength)
12551255
p := (*C.MQBYTE)(propertyPtr)
1256-
copy(ba[:], C.GoBytes(unsafe.Pointer(p), propertyLength))
1256+
copy(ba[:], C.GoBytes(unsafe.Pointer(p), (C.int)(propertyLength)))
12571257
propertyValue = ba
12581258
case C.MQTYPE_NULL:
12591259
propertyValue = nil

0 commit comments

Comments
 (0)