فهرست منبع

Adhere to `-vet-cast`

gingerBill 1 سال پیش
والد
کامیت
c18c0a3364
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      core/os/os_openbsd.odin

+ 1 - 2
core/os/os_openbsd.odin

@@ -610,8 +610,7 @@ absolute_path_from_relative :: proc(rel: string) -> (path: string, err: Errno) {
 	}
 	}
 	defer _unix_free(path_ptr)
 	defer _unix_free(path_ptr)
 
 
-	path_cstr := transmute(cstring)path_ptr
-	path = strings.clone( string(path_cstr) )
+	path = strings.clone(string(cstring(path_ptr)))
 
 
 	return path, ERROR_NONE
 	return path, ERROR_NONE
 }
 }