Skip to content

Commit 1075e8a

Browse files
committed
FIX: not changing default definition of binary-base from prebol module
1 parent 6384bc1 commit 1075e8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/modules/prebol.reb

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ REBOL [
5858
]
5959
]
6060

61-
system/options/binary-base: 64 ; output data in base-64
62-
6361
error: func [msg] [
6462
if block? msg [msg: reform msg]
6563
sys/log/error 'prebol msg
@@ -72,8 +70,10 @@ process-source: func [
7270
blk [any-block!] "Block of source to process"
7371
size [integer!] "Starting size"
7472
/only "Don't use recursive processing"
75-
/local file data expr cmd else tmp path include-cmds header do-expr
73+
/local file data expr cmd else tmp path include-cmds header do-expr base
7674
][
75+
base: system/options/binary-base
76+
system/options/binary-base: 64 ; output data in base-64
7777
do-expr: func [expr /local result] [
7878
; Evaluate expression and make sure it returns a result.
7979
set/any 'result try [do :expr]
@@ -209,5 +209,6 @@ comment (rejoin [{---- end of include } mold file { ----}])
209209
if block? :item [size: process-source item size]
210210
]
211211
]
212+
system/options/binary-base: base ; restore the original base
212213
size
213214
]

0 commit comments

Comments
 (0)