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:
@@ -234,7 +234,7 @@ fn break_if_debugger_attached() {
|
||||
$if tinyc {
|
||||
unsafe {
|
||||
mut ptr := &voidptr(0)
|
||||
*ptr = 0
|
||||
*ptr = voidptr(0)
|
||||
}
|
||||
} $else {
|
||||
if C.IsDebuggerPresent() {
|
||||
|
||||
Reference in New Issue
Block a user