diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-08 10:47:03 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-08 10:47:03 (GMT) |
commit | 0a22bf7d6eb0668e280b58e16e2820e90c773979 (patch) | |
tree | 0e85642cadda183ae9ab3e645a1e87cdfbaa8ec3 /lib | |
parent | d06ab4f4159ed930b36dc4f24d750628daf28f07 (diff) | |
download | lz4-0a22bf7d6eb0668e280b58e16e2820e90c773979.zip lz4-0a22bf7d6eb0668e280b58e16e2820e90c773979.tar.gz lz4-0a22bf7d6eb0668e280b58e16e2820e90c773979.tar.bz2 |
err0r(LZ4F_errorCodes code) uses ptrdiff_t
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 08b7050..a946f29 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -195,7 +195,7 @@ const char* LZ4F_getErrorName(LZ4F_errorCode_t code) return codeError; } -static LZ4F_errorCode_t err0r(LZ4F_errorCodes code) { return (LZ4F_errorCode_t)-(LZ4F_errorCode_t)code; } +static LZ4F_errorCode_t err0r(LZ4F_errorCodes code) { return (LZ4F_errorCode_t)-(ptrdiff_t)code; } unsigned LZ4F_getVersion(void) { return LZ4F_VERSION; } |