diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-03 22:33:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-03 22:34:00 -0700 |
| commit | a5bbce315dd9e6861d426bb16a3d792e2a3c0dfc (patch) | |
| tree | f52d66e366bcc9c2aee002a27e69febc6cadef9b /code_obj.lua | |
| parent | bf60ac28c5ab128a15d1b0a2d5f1021dbe7081fd (diff) | |
Minor tweaks/cleanups.
Diffstat (limited to 'code_obj.lua')
| -rw-r--r-- | code_obj.lua | 2 |
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, |
