diff options
author | David Carlier <devnexen@gmail.com> | 2017-11-19 16:23:42 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2017-11-19 16:23:42 +0000 |
commit | 62689ef0cf3c805b100ff5260485368e1c9b683c (patch) | |
tree | b2e9e622ca53de8373f63877d04e448d77553e6e /src/lzfP.h | |
parent | cf9a3f704850e82793239d9349ffa282eb9217f5 (diff) | |
download | redis-62689ef0cf3c805b100ff5260485368e1c9b683c.tar.gz |
Fix undefined behavior constant defined.
Diffstat (limited to 'src/lzfP.h')
-rw-r--r-- | src/lzfP.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lzfP.h b/src/lzfP.h index c6d2e096c..93c27b42d 100644 --- a/src/lzfP.h +++ b/src/lzfP.h @@ -79,7 +79,11 @@ * Unconditionally aligning does not cost very much, so do it if unsure */ #ifndef STRICT_ALIGN -# define STRICT_ALIGN !(defined(__i386) || defined (__amd64)) +# if !(defined(__i386) || defined (__amd64)) +# define STRICT_ALIGN 1 +# else +# define STRICT_ALIGN 0 +# endif #endif /* |