We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3398b0 commit fb29e39Copy full SHA for fb29e39
src/nimblepkg/checksums.nim
@@ -32,7 +32,7 @@ proc updateSha1Checksum(checksum: var Sha1State, fileName, filePath: string) =
32
while true:
33
var bytesRead = readChars(file, buffer)
34
if bytesRead == 0: break
35
- checksum.update(buffer[0..<bytesRead])
+ checksum.update(buffer.toOpenArray(0, bytesRead - 1))
36
37
proc calculateDirSha1Checksum*(dir: string): Sha1Hash =
38
## Recursively calculates the sha1 checksum of the contents of the directory
0 commit comments