Skip to content

Commit

Permalink
fix: type convert error
Browse files Browse the repository at this point in the history
  • Loading branch information
yj12138 committed Mar 2, 2024
1 parent ecefbc3 commit cd5f76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func DispatorMsg(msgId int, msg interface{}) {
} else if kind == reflect.String {
data = msg.(string)
} else if kind == reflect.Int32 {
data = strconv.Itoa(msg.(int))
data = strconv.Itoa(int(msg.(int32)))
}
var cdata = C.CString(data)
C.CallMessageHandler(C.messageHandler, C.int(msgId), cdata)
Expand Down

0 comments on commit cd5f76e

Please sign in to comment.