From a5bbce315dd9e6861d426bb16a3d792e2a3c0dfc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 3 May 2018 22:33:44 -0700 Subject: Minor tweaks/cleanups. --- code_obj.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code_obj.lua') 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, -- cgit v1.2.3