Skip to content

Commit

Permalink
use noSideEffect for bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Jan 14, 2022
1 parent 0bb8b2b commit ee22492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/md5.nim
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ proc writeBuffer(c: var MD5Context, index: int,
memOrNot:
copyMem(addr(c.buffer[index]), unsafeAddr(input[inputIndex]), len)
do:
{.cast(raises: []).}:
{.noSideEffect.}:
# `[]=` can sometimes track RangeDefect, even though it cannot be raised here
c.buffer[index .. index + len - 1] = input.slice(inputIndex, inputIndex + len - 1)

Expand Down

0 comments on commit ee22492

Please sign in to comment.