diff --git a/src/lread.c b/src/lread.c index 3097a6b7c3e..bac5ad4f161 100644 --- a/src/lread.c +++ b/src/lread.c @@ -1416,7 +1416,8 @@ readevalloop (readcharfun, stream, sourcename, evalfun, } build_load_history (sourcename, - stream || (start == BEG && end == Z)); + stream || (INTEGERP (start) && INTEGERP (end) + && XINT (start) == BEG && XINT (end) == Z)); UNGCPRO;