Skip to content

Commit e2d866b

Browse files
committed
FIX: keeping spec/ref value in CHECKSUM scheme specification as some HELP functions are looking for it.
1 parent fb113c6 commit e2d866b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/p-checksum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
spec = BLK_SKIP(port, STD_PORT_SPEC);
125125
if (!IS_OBJECT(spec)) Trap1(RE_INVALID_SPEC, spec);
126-
method = Obj_Value(spec, STD_PORT_SPEC_HEAD_REF);
126+
method = Obj_Value(spec, STD_PORT_SPEC_HEAD_PATH);
127127
if (!method || !IS_WORD(method)) Trap1(RE_INVALID_SPEC, spec);
128128

129129
*D_RET = *D_ARG(1);

src/mezz/sys-ports.r

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ init-schemes: func [
290290
]
291291

292292
make-scheme [
293-
title: "Checksum incremental computing"
293+
title: "Checksum port"
294294
info: "Possible methods: MD5, SHA1, SHA256, SHA384, SHA512"
295295
name: 'checksum
296296
init: function [
@@ -311,6 +311,7 @@ init-schemes: func [
311311
port/spec: object [
312312
title: spec/title
313313
scheme: spec/scheme
314+
ref: spec/ref ;-- help system wants this value!
314315
method: meth
315316
]
316317
protect/words port/spec

0 commit comments

Comments
 (0)