In perl.git, the branch smoke-me/SuperFast has been updated <http://perl5.git.perl.org/perl.git/commitdiff/21b198827d993686472715353121e26f27510ae0?hp=10a1981f1b106a3fd2f850cb070f35925745c1d4>
- Log ----------------------------------------------------------------- commit 21b198827d993686472715353121e26f27510ae0 Author: Nicholas Clark <[email protected]> Date: Tue Dec 4 11:27:30 2012 +0100 No need to use UINT32_C() in the "Super-Fast" hash implementation. The "Super-Fast" hash implementation had a definition of its get16bits() macro which used UINT32_C(). UINT32_C() is part of C99 and isn't available everywhere, particularly some C++ installations. It isn't actually needed here, as the left shift 8 of a char value isn't going to overflow. So remove it. ----------------------------------------------------------------------- Summary of changes: hv.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hv.h b/hv.h index c52f4f8..acb7275 100644 --- a/hv.h +++ b/hv.h @@ -276,7 +276,7 @@ struct xpvhv { #endif #if !defined (get16bits) -#define get16bits(d) ((((const U8 *)(d))[1] << UINT32_C(8))\ +#define get16bits(d) ((((const U8 *)(d))[1] << 8)\ +((const U8 *)(d))[0]) #endif #define PERL_HASH(hash,str,len) \ -- Perl5 Master Repository
