From 97dbae1800413a66bf2dd92b8ccb2eab69bfa492 Mon Sep 17 00:00:00 2001 From: Martijn van Beurden Date: Thu, 15 Sep 2022 07:17:18 +0200 Subject: Fix endianness display in endswap test (cosmetic issue) As CPU_IS_LITTLE_ENDIAN is used nowehere except in test_libflac, switch to CPU_IS_BIG_ENDIAN instead, which is actually used in the code at several places. CMake didn't set the former but does set the latter. --- src/test_libFLAC/endswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/test_libFLAC/endswap.c b/src/test_libFLAC/endswap.c index 9b65afaa..d569197d 100644 --- a/src/test_libFLAC/endswap.c +++ b/src/test_libFLAC/endswap.c @@ -43,7 +43,7 @@ FLAC__bool test_endswap(void) uint32_t u32; } data; - printf("\n+++ libFLAC unit test: endswap (%s endian host)\n\n", CPU_IS_LITTLE_ENDIAN ? "little" : "big"); + printf("\n+++ libFLAC unit test: endswap (%s endian host)\n\n", CPU_IS_BIG_ENDIAN ? "big" : "little"); printf("testing ENDSWAP_16 on int16_t ... "); if (((int16_t) ENDSWAP_16(i16)) == i16) { -- cgit v1.2.1