Skip to content

Commit

Permalink
fix: parameter type should be C.int64_t not C.longlong (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartiniMoe authored Feb 23, 2024
1 parent 8c5c6a6 commit 41e9b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (h callbackHandler) host(cp *C.CPlugin) Host {
return ProcessLevel(C.callbackHost(h.callback, cp, C.int(HostGetCurrentProcessLevel), 0, 0, nil, 0))
},
GetTimeInfo: func(flags TimeInfoFlag) *TimeInfo {
return (*TimeInfo)(unsafe.Pointer(uintptr(C.callbackHost(h.callback, cp, C.int(HostGetTime), 0, C.longlong(flags), nil, 0))))
return (*TimeInfo)(unsafe.Pointer(uintptr(C.callbackHost(h.callback, cp, C.int(HostGetTime), 0, C.int64_t(flags), nil, 0))))
},
}
}
Expand Down

0 comments on commit 41e9b65

Please sign in to comment.