summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2021-11-25 17:07:44 (GMT)
committerGitHub <noreply@github.com>2021-11-25 17:07:44 (GMT)
commit4c9431e9af596af0556e5da0ae99305bafb2b10b (patch)
tree1d0f5726d23b0f868637ef3023ed7fccc9b2eab0 /lib/lz4hc.c
parentdb57809cf189feb2dd690d55abc2884c95c6fc00 (diff)
parent4bdfb08b95ede33d41ad4c722f039b957c0dc612 (diff)
downloadlz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.zip
lz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.tar.gz
lz4-4c9431e9af596af0556e5da0ae99305bafb2b10b.tar.bz2
Merge pull request #1042 from DimitriPapadopoulos/codespell
Fix typos found by codespell
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 91fd2b0..e71ce94 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -201,7 +201,7 @@ LZ4HC_countPattern(const BYTE* ip, const BYTE* const iEnd, U32 const pattern32)
/* LZ4HC_reverseCountPattern() :
* pattern must be a sample of repetitive pattern of length 1, 2 or 4 (but not 3!)
- * read using natural platform endianess */
+ * read using natural platform endianness */
static unsigned
LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern)
{
@@ -211,7 +211,7 @@ LZ4HC_reverseCountPattern(const BYTE* ip, const BYTE* const iLow, U32 pattern)
if (LZ4_read32(ip-4) != pattern) break;
ip -= 4;
}
- { const BYTE* bytePtr = (const BYTE*)(&pattern) + 3; /* works for any endianess */
+ { const BYTE* bytePtr = (const BYTE*)(&pattern) + 3; /* works for any endianness */
while (likely(ip>iLow)) {
if (ip[-1] != *bytePtr) break;
ip--; bytePtr--;