Skip to content

Commit

Permalink
Compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhash committed Oct 20, 2015
1 parent 010357f commit e566922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librhash/byte_order.c
Expand Up @@ -56,7 +56,7 @@ unsigned rhash_ctz(unsigned x)
* possible bit position that it is multiplied against.
* See http://graphics.stanford.edu/~seander/bithacks.html
* and http://chessprogramming.wikispaces.com/BitScan */
return (unsigned)bit_pos[((uint32_t)((v & -v) * 0x077CB531U)) >> 27];
return (unsigned)bit_pos[((uint32_t)((x & -x) * 0x077CB531U)) >> 27];
}
# endif /* _MSC_VER >= 1300... */
#endif /* !(GCC >= 4.3) */
Expand Down

0 comments on commit e566922

Please sign in to comment.