diff options
| author | ruki <[email protected]> | 2021-12-05 23:10:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-05 23:10:06 +0800 |
| commit | b48381cda166808c879fabf2a263b66012e7c2aa (patch) | |
| tree | 94add0a0556bdf32c8703f78f3de0bc0b33e2ad0 /xmake/modules/private/utils/bin2c.lua | |
| parent | 8787117f775151203132c228d40f5d1f672b0dda (diff) | |
Update bin2c.lua
Diffstat (limited to 'xmake/modules/private/utils/bin2c.lua')
| -rw-r--r-- | xmake/modules/private/utils/bin2c.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/bin2c.lua b/xmake/modules/private/utils/bin2c.lua index 409162f00..6f18833fc 100644 --- a/xmake/modules/private/utils/bin2c.lua +++ b/xmake/modules/private/utils/bin2c.lua @@ -85,7 +85,7 @@ function _do_bin2c(binarypath, outputpath, opt) local binarydata = bytes(io.readfile(binarypath, {encoding = "binary"})) local outputfile = io.open(outputpath, 'w') if outputfile then - if opt.nozeroend then + if not opt.nozeroend then binarydata = binarydata .. bytes('\0') end _do_dump(binarydata, outputfile, opt) |
