diff options
| author | ruki <[email protected]> | 2021-05-26 23:30:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-26 23:30:14 +0800 |
| commit | 7d1291b310e771c903922ebf4502372c7339c72e (patch) | |
| tree | 8b39b6d7003a0dde5a4718b5267117a39da6ae2f /xmake/modules/core/tools/tcc.lua | |
| parent | 569a2d4f828654e042308c82b67b1108de4ef433 (diff) | |
remove some ifelse
Diffstat (limited to 'xmake/modules/core/tools/tcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/tcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua index d5400c994..7d306997f 100644 --- a/xmake/modules/core/tools/tcc.lua +++ b/xmake/modules/core/tools/tcc.lua @@ -179,7 +179,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) -- get 16 lines of errors if start > 0 or not option.get("verbose") then if start == 0 then start = 1 end - errors = table.concat(table.slice(lines, start, start + ifelse(#lines - start > 16, 16, #lines - start)), "\n") + errors = table.concat(table.slice(lines, start, start + ((#lines - start > 16) and 16 or (#lines - start))), "\n") end -- raise compiling errors |
