mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: disallow assigning number to pointer (#7267)
This commit is contained in:
@ -425,9 +425,7 @@ fn (cb &Clipboard) get_supported_targets() []C.Atom {
|
||||
}
|
||||
|
||||
fn new_atom(value int) &C.Atom {
|
||||
mut atom := &C.Atom{}
|
||||
atom = value
|
||||
return atom
|
||||
return unsafe {&C.Atom(value)}
|
||||
}
|
||||
|
||||
fn create_xwindow(display &C.Display) C.Window {
|
||||
|
Reference in New Issue
Block a user