My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4497 from facebook/legacy_fix

fix minor warning in legacy decoders

authored by

Yann Collet and committed by
GitHub
ece76cf9 e20c81a6

+5 -5
+1 -1
vendor/git/zstd-c/lib/legacy/zstd_v01.c
··· 430 430 431 431 static short FSE_abs(short a) 432 432 { 433 - return a<0? -a : a; 433 + return a<0? (short)-a : a; 434 434 } 435 435 436 436
+1 -1
vendor/git/zstd-c/lib/legacy/zstd_v03.c
··· 1111 1111 ****************************************************************/ 1112 1112 static short FSE_abs(short a) 1113 1113 { 1114 - return a<0 ? -a : a; 1114 + return a<0 ? (short)-a : a; 1115 1115 } 1116 1116 1117 1117 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,
+1 -1
vendor/git/zstd-c/lib/legacy/zstd_v04.c
··· 1094 1094 ****************************************************************/ 1095 1095 static short FSE_abs(short a) 1096 1096 { 1097 - return a<0 ? -a : a; 1097 + return a<0 ? (short)-a : a; 1098 1098 } 1099 1099 1100 1100 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,
+1 -1
vendor/git/zstd-c/lib/legacy/zstd_v05.c
··· 1224 1224 /*-************************************************************** 1225 1225 * FSEv05 NCount encoding-decoding 1226 1226 ****************************************************************/ 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; } 1228 1228 1229 1229 1230 1230 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr,
+1 -1
vendor/git/zstd-c/lib/legacy/zstd_v06.c
··· 1202 1202 /*-************************************************************** 1203 1203 * FSE NCount encoding-decoding 1204 1204 ****************************************************************/ 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; } 1206 1206 1207 1207 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, 1208 1208 const void* headerBuffer, size_t hbSize)