Skip to content

Commit 3aeb9c2

Browse files
committed
fix minor warning in legacy decoders
for mingw + clang CI test
1 parent ee9b5f4 commit 3aeb9c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/legacy/zstd_v05.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ const char* FSEv05_getErrorName(size_t code) { return ERR_getErrorName(code); }
12241224
/*-**************************************************************
12251225
* FSEv05 NCount encoding-decoding
12261226
****************************************************************/
1227-
static short FSEv05_abs(short a) { return a<0 ? -a : a; }
1227+
static short FSEv05_abs(short a) { return a<0 ? (short)-a : a; }
12281228

12291229

12301230
size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,

lib/legacy/zstd_v06.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ static unsigned HUFv06_isError(size_t code) { return ERR_isError(code); }
12021202
/*-**************************************************************
12031203
* FSE NCount encoding-decoding
12041204
****************************************************************/
1205-
static short FSEv06_abs(short a) { return a<0 ? -a : a; }
1205+
static short FSEv06_abs(short a) { return a<0 ? (short)-a : a; }
12061206

12071207
size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,
12081208
const void* headerBuffer, size_t hbSize)

0 commit comments

Comments
 (0)