fix some warnings (#16952)
This commit is contained in:
parent
910720b0d4
commit
f140c92409
22 changed files with 119 additions and 119 deletions
|
|
@ -423,7 +423,7 @@ when defined(createNimHcr):
|
|||
if modules.contains(name):
|
||||
unloadDll(name)
|
||||
else:
|
||||
modules.add(name, newModuleDesc())
|
||||
modules[name] = newModuleDesc()
|
||||
|
||||
let copiedName = name & ".copy." & dllExt
|
||||
copyFileWithPermissions(name, copiedName)
|
||||
|
|
@ -601,7 +601,7 @@ when defined(createNimHcr):
|
|||
|
||||
proc hcrAddModule*(module: cstring) {.nimhcr.} =
|
||||
if not modules.contains($module):
|
||||
modules.add($module, newModuleDesc())
|
||||
modules[$module] = newModuleDesc()
|
||||
|
||||
proc hcrGeneration*(): int {.nimhcr.} =
|
||||
generation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue