diff options
author | Eric N. Vander Weele <ericvw@gmail.com> | 2023-03-20 13:51:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 18:51:31 +0100 |
commit | da7833c68bd8a3fea4b380e2a0e84753812450fe (patch) | |
tree | 653b80af266c62f0e57e4659b018c8772df66857 /lib/pure/httpclient.nim | |
parent | 285ea3c48e7b01fe6beecf794e9e8cc904c27889 (diff) | |
download | Nim-da7833c68bd8a3fea4b380e2a0e84753812450fe.tar.gz |
fixes #21538; expand len template parameter once in newSeqWith (#21543)
`len` could contain side effects and may result in different values when substituted twice in the template expansion. Instead, capture the result of substituting `len` once. closes: #21538
Diffstat (limited to 'lib/pure/httpclient.nim')
0 files changed, 0 insertions, 0 deletions