aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-11-04 11:07:04 +0100
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 17:26:18 -0800
commiteb82dd9e2dfe2aa1748128a38d143be9a5889793 (patch)
treefb272dce21fb813bf3f2cffd50a2cf8497127a70
parent5320eebd9dd6ce2893a50811594b06671de1fa2d (diff)
downloadandroid_external_lz4-eb82dd9e2dfe2aa1748128a38d143be9a5889793.tar.gz
android_external_lz4-eb82dd9e2dfe2aa1748128a38d143be9a5889793.tar.bz2
android_external_lz4-eb82dd9e2dfe2aa1748128a38d143be9a5889793.zip
Fixed issue #31 : lz4.c warning under visual
-rw-r--r--lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lz4.c b/lz4.c
index 9345e74..198b581 100644
--- a/lz4.c
+++ b/lz4.c
@@ -289,7 +289,7 @@ typedef enum { full = 0, partial = 1 } earlyEnd_directive;
/**************************************
Macros
**************************************/
-#define LZ4_STATIC_ASSERT(c) { enum { LZ4_static_assert = 1/(!!(c)) }; } /* use only *after* variable declarations */
+#define LZ4_STATIC_ASSERT(c) { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */
#if LZ4_ARCH64 || !defined(__GNUC__)
# define LZ4_WILDCOPY(d,s,e) { do { LZ4_COPY8(d,s) } while (d<e); } /* at the end, d>=e; */
#else