Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't forget parens around macro arguments
They really do matter.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 27, 2015
1 parent c786621 commit 1f1a030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lzs.c
Expand Up @@ -179,7 +179,7 @@ int lzs_compress(unsigned char *dst, int dstlen, const unsigned char *src, int s
*/
#define HASH_BITS 16
#define HASH_TABLE_SIZE (1ULL << HASH_BITS)
#define HASH(p) (((struct oc_packed_uint16_t *)p)->d)
#define HASH(p) (((struct oc_packed_uint16_t *)(p))->d)

/*
* There are two data structures for tracking the history. The first
Expand Down

0 comments on commit 1f1a030

Please sign in to comment.