]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: avoid a signed overflow warning in ptx
authorPádraig Brady <P@draigBrady.com>
Sat, 16 Dec 2017 21:07:43 +0000 (13:07 -0800)
committerPádraig Brady <P@draigBrady.com>
Sat, 16 Dec 2017 21:08:43 +0000 (13:08 -0800)
commita1300c60efef1ee1b9e04d6834cb6d3eda16f31d
treef363ae77e5123c4f06ff890edabd97ed3c008084
parent36325c7f039729f2a24f21d1cbf528202ec4e2d3
build: avoid a signed overflow warning in ptx

* src/ptx.c (fix_output_parameters): GCC 6.3.1 with
./configure --enable-single-binary would give:
  error: assuming signed overflow does not occur
  when simplifying conditional to constant [-Werror=strict-overflow]
    if (file_index > 0)
So change the type of file_index to signed (size_t).
src/ptx.c