summary refs log tree commit diff stats
path: root/compiler/sighashes.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-04-10 20:41:16 +0800
committerGitHub <noreply@github.com>2024-04-10 14:41:16 +0200
commit9b378296f65fff962225acc1bef2b3811fffda03 (patch)
tree882e043308e3a81d125666a6cff4f4bede5e0c2f /compiler/sighashes.nim
parent72d0ba2df534109064badde1a1b26ae53f22d44d (diff)
downloadNim-9b378296f65fff962225acc1bef2b3811fffda03.tar.gz
fixes addr/hiddenAddr in strictdefs (#23477)
Diffstat (limited to 'compiler/sighashes.nim')
-rw-r--r--compiler/sighashes.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim
index a058ffee9..1b75f6be6 100644
--- a/compiler/sighashes.nim
+++ b/compiler/sighashes.nim
@@ -268,7 +268,7 @@ when defined(debugSigHashes):
 
 proc hashType*(t: PType; conf: ConfigRef; flags: set[ConsiderFlag] = {CoType}): SigHash =
   result = default(SigHash)
-  var c: MD5Context
+  var c: MD5Context = default(MD5Context)
   md5Init c
   hashType c, t, flags+{CoOwnerSig}, conf
   md5Final c, result.MD5Digest
@@ -278,7 +278,7 @@ proc hashType*(t: PType; conf: ConfigRef; flags: set[ConsiderFlag] = {CoType}):
 
 proc hashProc(s: PSym; conf: ConfigRef): SigHash =
   result = default(SigHash)
-  var c: MD5Context
+  var c: MD5Context = default(MD5Context)
   md5Init c
   hashType c, s.typ, {CoProc}, conf
 
@@ -299,7 +299,7 @@ proc hashProc(s: PSym; conf: ConfigRef): SigHash =
 
 proc hashNonProc*(s: PSym): SigHash =
   result = default(SigHash)
-  var c: MD5Context
+  var c: MD5Context = default(MD5Context)
   md5Init c
   hashSym(c, s)
   var it = s
@@ -316,7 +316,7 @@ proc hashNonProc*(s: PSym): SigHash =
 
 proc hashOwner*(s: PSym): SigHash =
   result = default(SigHash)
-  var c: MD5Context
+  var c: MD5Context = default(MD5Context)
   md5Init c
   var m = s
   while m.kind != skModule: m = m.owner
@@ -389,7 +389,7 @@ proc symBodyDigest*(graph: ModuleGraph, sym: PSym): SigHash =
   graph.symBodyHashes.withValue(sym.id, value):
     return value[]
 
-  var c: MD5Context
+  var c: MD5Context = default(MD5Context)
   md5Init(c)
   c.hashType(sym.typ, {CoProc}, graph.config)
   c &= char(sym.kind)