clipboard: fix v -cstrict -cc gcc vlib/clipboard/clipboard_test.v

This commit is contained in:
Delyan Angelov 2023-10-15 21:21:24 +03:00
parent 4bc9a8f8d8
commit f54f156d25
7 changed files with 31 additions and 30 deletions

View file

@ -28,7 +28,7 @@ pub fn close(handle voidptr) bool {
// sym returns an address of an exported function or variable from a given module.
pub fn sym(handle voidptr, symbol string) voidptr {
return C.GetProcAddress(handle, symbol.str)
return C.GetProcAddress(handle, voidptr(symbol.str))
}
// dlerror provides a text error diagnostic message for functions in `dl`