Skip to content

Commit 7486f4a

Browse files
authored
Merge pull request #84 from ConnectEverything/int32fix
Int32fix
2 parents faf1610 + b813a3f commit 7486f4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ For example,
117117
118118
export CGO_LDFLAGS="-L$MQ_INSTALLATION_PATH/lib64 -Wl,rpath=$MQ_INSTALLATION_PATH/lib64"
119119
or on Darwin
120-
export CGO_LDFLAGS="-L$MQ_INSTALLATION_PATH/lib64 -Wl,rpath,$MQ_INSTALLATION_PATH/lib64"
120+
export CGO_LDFLAGS="-L$MQ_INSTALLATION_PATH/lib64 -Wl,-rpath,$MQ_INSTALLATION_PATH/lib64"
121121
```
122122

123123
* Compile the `ibmmq` component:

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)