mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: disallow struct int to ptr outside unsafe (#17923)
This commit is contained in:
parent
92cb7468ce
commit
3d99f1f2c2
36 changed files with 124 additions and 47 deletions
|
@ -1355,7 +1355,7 @@ fn (mut dl Dlmalloc) segment_holding(ptr voidptr) &Segment {
|
|||
}
|
||||
sp = sp.next
|
||||
}
|
||||
return &Segment(0)
|
||||
return &Segment(unsafe { nil })
|
||||
}
|
||||
|
||||
// realloc behaves as libc realloc, but operates within the given space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue