|
@@ -17,7 +17,7 @@
|
|
#define LZO1X_MEM_COMPRESS (16384 * sizeof(unsigned char *))
|
|
#define LZO1X_MEM_COMPRESS (16384 * sizeof(unsigned char *))
|
|
#define LZO1X_1_MEM_COMPRESS LZO1X_MEM_COMPRESS
|
|
#define LZO1X_1_MEM_COMPRESS LZO1X_MEM_COMPRESS
|
|
|
|
|
|
-#define lzo1x_worst_compress(x) (x + (x / 64) + 16 + 3)
|
|
|
|
|
|
+#define lzo1x_worst_compress(x) ((x) + ((x) / 16) + 64 + 3)
|
|
|
|
|
|
/* This requires 'workmem' of size LZO1X_1_MEM_COMPRESS */
|
|
/* This requires 'workmem' of size LZO1X_1_MEM_COMPRESS */
|
|
int lzo1x_1_compress(const unsigned char *src, size_t src_len,
|
|
int lzo1x_1_compress(const unsigned char *src, size_t src_len,
|