fix a warning

This commit is contained in:
coco875
2025-01-05 11:56:10 +01:00
parent 8a9728e7df
commit 8bf89bf918
+2
View File
@@ -110,11 +110,13 @@
// Envelopes are always stored as big endian, to match sequence files which are
// byte blobs and can embed envelopes. Hence this byteswapping macro.
#ifndef BSWAP16
#if IS_BIG_ENDIAN
#define BSWAP16(x) (x)
#else
#define BSWAP16(x) (((x) & 0xff) << 8 | (((x) >> 8) & 0xff))
#endif
#endif
/**
* (u8*) dl : Cast array down to u8's