Skip to content

Commit 6121a84

Browse files
committed
FIX: SAVE with /header true
fixes: Oldes/Rebol-issues#1465
1 parent 16a0cbe commit 6121a84

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/mezz/mezz-save.reb

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ save: function [
5959
header-data: any [
6060
lib/all [
6161
block? :value
62+
block? value/1
6263
first+ value ; the header (do not use TAKE)
6364
]
6465
[] ; empty header

src/tests/units/load-test.r3

+5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ Rebol [
128128
20312E322031303A3230202274657374222075736572406578616D706C652E63
129129
6F6D205B73756220626C6F636B5D0A}
130130
--assert data = load bin
131+
132+
;@@ https://github.com/Oldes/Rebol-issues/issues/1465
133+
bin: save/header none [1] true
134+
--assert bin = #{5245424F4C205B5D0A310A}
135+
--assert 1 = load bin
131136
===end-group===
132137

133138

0 commit comments

Comments
 (0)