Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DID.Native.SDK/hdkey/BR/BRCrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion DID.Native.SDK/hdkey/BR/BRSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down