Commit graph

17 commits

Author SHA1 Message Date
Con Kolivas d78c3bbd7a models is array of chars. char's signess is implementation specific.
It's unsigned on ARMv7. Unsigned char cannot represent negative values.
GCC 6 complains about it:

    narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

This can be reproduced with older GCC or by:

   ./configure CXXFLAGS='-Wnarrowing -funsigned-char'

This patch casts the negative values explicitly because changing the
type to signed char[] would change prototypes of public methods.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2016-06-09 15:25:49 +10:00
Con Kolivas a9fadeec1c Fix libzpaq.cpp warnings 2015-03-10 21:29:04 +11:00
Con Kolivas 5c5a8c6cc5 Use int64_t for i64 2015-03-10 20:05:51 +11:00
Con Kolivas e962197cbf Fix EOL to unix on libzpaq 2015-03-10 18:23:00 +11:00
Con Kolivas 745c2e2352 Fix other non-win32 compilation for libzpaq. 2012-07-07 22:17:00 +10:00
Con Kolivas ee08f310da Fix libzpaq compilation on other non-win32 OSs. 2012-07-07 22:13:15 +10:00
Con Kolivas ebd8eb917f One less tab in zpaq progress counter. 2012-03-17 22:42:04 +11:00
Con Kolivas f84d2f3373 More beautifying of the zpaq progress counter. 2012-03-17 22:33:49 +11:00
Con Kolivas 681947234e Minor formatting improvement to delete misaligned %. 2012-03-17 16:19:38 +11:00
Con Kolivas 9e33cfc24a Implement progress counter on zpaq compress/decompress per thread within the Reader function. 2012-03-17 15:30:43 +11:00
Con Kolivas 93049636e4 Add some lrzip style defines and optimisations to the lrzip functions in libzpaq.h 2012-03-17 14:25:06 +11:00
Con Kolivas 26433850b9 Implement virtual write support for bufWrite to speed up zpaq support and simplify the virtual read function for bufRead. 2012-03-16 23:00:29 +11:00
Con Kolivas 4d48717949 Add virtual read() support to the bufRead class to speed up encoding/decoding via the zpaq library. 2012-03-16 22:27:01 +11:00
Con Kolivas a55250cf16 Use libzpaq backend for decompression. 2012-03-16 14:14:22 +11:00
Con Kolivas f8d05b9a66 Move zpaq compression to new libzpaq library back end. 2012-03-16 14:04:16 +11:00
Con Kolivas dd89bdcf3e Add minimal libzpaq compilation support. 2012-03-16 08:59:04 +11:00
Con Kolivas 63229baed6 Move to libzpaq directory. 2012-03-15 22:38:58 +11:00