diff options
Diffstat (limited to 'compat53/module.lua')
| -rw-r--r-- | compat53/module.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compat53/module.lua b/compat53/module.lua index c4fc515..dad940b 100644 --- a/compat53/module.lua +++ b/compat53/module.lua | |||
| @@ -601,7 +601,10 @@ if lua_version < "5.3" then | |||
| 601 | if code == 0 then | 601 | if code == 0 then |
| 602 | return true, "exit", code | 602 | return true, "exit", code |
| 603 | else | 603 | else |
| 604 | return nil, "exit", code/256 -- only correct on Linux! | 604 | if package.config:sub(1, 1) == '/' then |
| 605 | code = code/256 -- only correct on Linux! | ||
| 606 | end | ||
| 607 | return nil, "exit", code | ||
| 605 | end | 608 | end |
| 606 | end | 609 | end |
| 607 | end | 610 | end |
