From dc2769097fe84e2e048d3c3b6f43ec754f971069 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Wed, 19 Feb 2025 23:50:47 +0200 Subject: [PATCH 1/2] Update BRSet.h --- DID.Native.SDK/hdkey/BR/BRSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DID.Native.SDK/hdkey/BR/BRSet.h b/DID.Native.SDK/hdkey/BR/BRSet.h index adb771f420..206c1b99a9 100644 --- a/DID.Native.SDK/hdkey/BR/BRSet.h +++ b/DID.Native.SDK/hdkey/BR/BRSet.h @@ -53,7 +53,7 @@ void BRSetClear(BRSet *set); // returns the number of items in set size_t BRSetCount(const BRSet *set); -// true if an item equivalant to the given item is contained in set +// true if an item equivalent to the given item is contained in set int BRSetContains(const BRSet *set, const void *item); // true if any items in otherSet are contained in set From 9cf7a0230bb0b31c22de9127a2b02daeb5562ca7 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Wed, 19 Feb 2025 23:51:18 +0200 Subject: [PATCH 2/2] Update BRCrypto.c --- DID.Native.SDK/hdkey/BR/BRCrypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DID.Native.SDK/hdkey/BR/BRCrypto.c b/DID.Native.SDK/hdkey/BR/BRCrypto.c index 3ab9049d87..16593c1f50 100644 --- a/DID.Native.SDK/hdkey/BR/BRCrypto.c +++ b/DID.Native.SDK/hdkey/BR/BRCrypto.c @@ -38,7 +38,7 @@ #define be32(x) ((((x) & 0xff) << 24) | (((x) & 0xff00) << 8) | (((x) & 0xff0000) >> 8) | (((x) & 0xff000000) >> 24)) #define le64(x) (x) #define be64(x) ((union { uint32_t u32[2]; uint64_t u64; }) { be32((uint32_t)((x) >> 32)), be32((uint32_t)(x)) }.u64) -#else // unknown endianess +#else // unknown endianness #define be32(x) ((union { uint8_t u8[4]; uint32_t u32; }) { (x) >> 24, (x) >> 16, (x) >> 8, (x) }.u32) #define le32(x) ((union { uint8_t u8[4]; uint32_t u32; }) { (x), (x) >> 8, (x) >> 16, (x) >> 24 }.u32) #define be64(x) ((union { uint32_t u32[2]; uint64_t u64; }) { be32((uint32_t)((x) >> 32)), be32((uint32_t)(x)) }.u64)