Skip to content

Commit 8206872

Browse files
committed
FIX: checksum with file! argument not supporting all available methods
1 parent f25ddfa commit 8206872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/n-strings.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static struct digest {
264264
else {
265265
// Dispatch file to file-checksum function...
266266
REBVAL *func = Find_Word_Value(Lib_Context, SYM_FILE_CHECKSUM);
267-
if (func && IS_FUNCTION(func) && sym > SYM_CRC32 && sym <= SYM_RIPEMD160) {
267+
if (func && IS_FUNCTION(func) && sym > SYM_CRC32 && sym <= SYM_SHA3_512) {
268268
if (D_REF(ARG_CHECKSUM_WITH) || D_REF(ARG_CHECKSUM_PART))
269269
Trap0(RE_BAD_REFINES);
270270

0 commit comments

Comments
 (0)