summaryrefslogtreecommitdiff
path: root/lzf_c.c
diff options
context:
space:
mode:
authorroot <root>2010-06-01 01:50:24 +0000
committerroot <root>2010-06-01 01:50:24 +0000
commitdd641edac04378dd4277de0eaaff5d0f798e0ba5 (patch)
treef1bfde73e4468b1f118467a0fb146689343d0039 /lzf_c.c
parentc50584f36a2483901c13693846f8a0f3b74eb5c1 (diff)
*** empty log message ***
Diffstat (limited to 'lzf_c.c')
-rw-r--r--lzf_c.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lzf_c.c b/lzf_c.c
index 85b861b..1878954 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -155,13 +155,11 @@ lzf_compress (const void *const in_data, unsigned int in_len,
&& (off = ip - ref - 1) < MAX_OFF
&& ip + 4 < in_end
&& ref > (u8 *)in_data
-#if STRICT_ALIGN
- && ref[0] == ip[0]
- && ref[1] == ip[1]
&& ref[2] == ip[2]
+#if STRICT_ALIGN
+ && (ref[1] << 8) | ref[0] == (ip[1] << 8) | ip[0]
#else
&& *(u16 *)ref == *(u16 *)ip
- && ref[2] == ip[2]
#endif
)
{