aboutsummaryrefslogtreecommitdiff
path: root/code_obj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'code_obj.lua')
-rw-r--r--code_obj.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/code_obj.lua b/code_obj.lua
index 4e7de9b..dbc1d65 100644
--- a/code_obj.lua
+++ b/code_obj.lua
@@ -16,7 +16,7 @@ Source = immutable({
start, stop = 1, #FILE_CACHE[filename]
end
if stop then
- assert(start <= stop, "Invalid range: " .. tostring(start) .. ", " .. tostring(stop))
+ assert(start <= stop + 1, "Invalid range: " .. tostring(start) .. ", " .. tostring(stop))
end
return filename, start, stop
end,