1
0
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:
Nick Treleaven
2020-12-12 09:42:07 +00:00
committed by GitHub
parent 5fec0d785a
commit d785e22a6e
10 changed files with 47 additions and 22 deletions

View File

@ -118,7 +118,7 @@ fn load_lib(mut r live.LiveReloadInfo, new_lib_path string) {
fn protected_load_lib(mut r live.LiveReloadInfo, new_lib_path string) {
if r.live_lib != 0 {
dl.close( r.live_lib )
r.live_lib = 0
r.live_lib = C.NULL
}
r.live_lib = dl.open(new_lib_path, dl.rtld_lazy)
if r.live_lib == 0 {