Skip to content

Commit 1802649

Browse files
committed
FIX: don't treat zero value in mold/part as unlimited output
Reverted change from e108cfc
1 parent 8e5cdef commit 1802649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/boot/sysobj.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ options: object [ ; Options supplied to REBOL during startup
149149

150150
binary-base: 16 ; Default base for FORMed binary values (64, 16, 2)
151151
decimal-digits: 15 ; Max number of decimal digits to print.
152-
probe-limit: 16000 ; Max probed output size, 0 means no limit
152+
probe-limit: 16000 ; Max probed output size
153153
module-paths: [%./]
154154
default-suffix: %.reb ; Used by IMPORT if no suffix is provided
155155
file-types: []

src/core/n-io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static REBSER *Read_All_File(char *fname)
139139
if (VAL_INT64(D_ARG(6)) > (i64)MAX_I32)
140140
len = MAX_I32;
141141
else if (VAL_INT64(D_ARG(6)) <= 0)
142-
len = NO_LIMIT;
142+
len = 0;
143143
else
144144
len = VAL_INT32(D_ARG(6));
145145
}

0 commit comments

Comments
 (0)