summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4frame.c2
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; }