summaryrefslogtreecommitdiff
path: root/hv_macro.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2019-11-03 16:13:48 -0800
committerTony Cook <tony@develop-help.com>2019-11-04 03:02:59 +0100
commit2e38307183b4040022d31197d9622455f3848966 (patch)
treec2fafabd2dae011abeb4987ab66635c717e0dc53 /hv_macro.h
parentc4b6b96d53556cbfabec85cb5114d0113c5766c8 (diff)
downloadperl-2e38307183b4040022d31197d9622455f3848966.tar.gz
Fix copy-and-paste mistake in U8TO64_LE
Fixes: https://github.com/Perl/perl5/issues/17244 Fixes: https://github.com/Perl/perl5/issues/17247 Fixes: https://rt.cpan.org/Ticket/Display.html?id=130890
Diffstat (limited to 'hv_macro.h')
-rw-r--r--hv_macro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv_macro.h b/hv_macro.h
index 02c0baad08..b96057eab8 100644
--- a/hv_macro.h
+++ b/hv_macro.h
@@ -25,7 +25,7 @@
#define U8TO16_LE(ptr) ((U32)(ptr)[1]|(U32)(ptr)[0]<<8)
#define U8TO32_LE(ptr) ((U32)(ptr)[3]|(U32)(ptr)[2]<<8|(U32)(ptr)[1]<<16|(U32)(ptr)[0]<<24)
#define U8TO64_LE(ptr) ((U64)(ptr)[7]|(U64)(ptr)[6]<<8|(U64)(ptr)[5]<<16|(U64)(ptr)[4]<<24|\
- (U64)(ptr)[3]<<32|(U64)(ptr)[4]<<40|\
+ (U64)(ptr)[3]<<32|(U64)(ptr)[2]<<40|\
(U64)(ptr)[1]<<48|(U64)(ptr)[0]<<56)
#elif (BYTEORDER == 0x4321 || BYTEORDER == 0x87654321)
#define U8TO16_LE(ptr) ((U32)(ptr)[0]|(U32)(ptr)[1]<<8)