From a565cfa91e19352d100fcf104786bf5e6234d63f Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Fri, 16 Jan 2026 11:49:10 -0800 Subject: Replace conditional byte swapping with portable host/LE conversion --- insert_string_tpl.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'insert_string_tpl.h') diff --git a/insert_string_tpl.h b/insert_string_tpl.h index a5c3abf384..f8318e4e00 100644 --- a/insert_string_tpl.h +++ b/insert_string_tpl.h @@ -20,13 +20,7 @@ */ #ifndef HASH_CALC_READ -# if BYTE_ORDER == LITTLE_ENDIAN -# define HASH_CALC_READ \ - val = zng_memread_4(strstart); -# else -# define HASH_CALC_READ \ - val = ZSWAP32(zng_memread_4(strstart)); -# endif +# define HASH_CALC_READ val = Z_U32_FROM_LE(zng_memread_4(strstart)); #endif /* =========================================================================== -- cgit 0.0.5-2-1-g0f52