Skip to content

Commit

Permalink
FIX: not changing default definition of binary-base from prebol m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
Oldes committed Apr 6, 2021
1 parent 6384bc1 commit 1075e8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/prebol.reb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ REBOL [
]
]

system/options/binary-base: 64 ; output data in base-64

error: func [msg] [
if block? msg [msg: reform msg]
sys/log/error 'prebol msg
Expand All @@ -72,8 +70,10 @@ process-source: func [
blk [any-block!] "Block of source to process"
size [integer!] "Starting size"
/only "Don't use recursive processing"
/local file data expr cmd else tmp path include-cmds header do-expr
/local file data expr cmd else tmp path include-cmds header do-expr base
][
base: system/options/binary-base
system/options/binary-base: 64 ; output data in base-64
do-expr: func [expr /local result] [
; Evaluate expression and make sure it returns a result.
set/any 'result try [do :expr]
Expand Down Expand Up @@ -209,5 +209,6 @@ comment (rejoin [{---- end of include } mold file { ----}])
if block? :item [size: process-source item size]
]
]
system/options/binary-base: base ; restore the original base
size
]

0 comments on commit 1075e8a

Please sign in to comment.