Skip to content

Commit 402fb3a

Browse files
committed
while (true)
1 parent 679a7b0 commit 402fb3a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/ZstdSharp/Unsafe/FseDecompress.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static nuint FSE_decompress_usingDTable_generic(void* dst, nuint maxDstS
172172
op[3] = fast != 0 ? FSE_decodeSymbolFast(&state2, &bitD) : FSE_decodeSymbol(&state2, &bitD);
173173
}
174174

175-
while (1 != 0)
175+
while (true)
176176
{
177177
if (op > omax - 2)
178178
return unchecked((nuint)(-(int)ZSTD_ErrorCode.ZSTD_error_dstSize_tooSmall));

src/ZstdSharp/Unsafe/ZstdDecompress.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ private static ZSTD_frameSizeInfo ZSTD_findFrameSizeInfo(void* src, nuint srcSiz
766766

767767
ip += zfh.headerSize;
768768
remainingSize -= zfh.headerSize;
769-
while (1 != 0)
769+
while (true)
770770
{
771771
blockProperties_t blockProperties;
772772
nuint cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties);
@@ -987,7 +987,7 @@ private static nuint ZSTD_decompressFrame(ZSTD_DCtx_s* dctx, void* dst, nuint ds
987987
remainingSrcSize -= frameHeaderSize;
988988
}
989989

990-
while (1 != 0)
990+
while (true)
991991
{
992992
byte* oBlockEnd = oend;
993993
nuint decodedSize;

src/ZstdSharp/Unsafe/ZstdDoubleFast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private static nuint ZSTD_compressBlock_doubleFast_noDict_generic(ZSTD_matchStat
147147
}
148148
}
149149

150-
while (1 != 0)
150+
while (true)
151151
{
152152
step = 1;
153153
nextStep = ip + kStepIncr;

src/ZstdSharp/Unsafe/ZstdFast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ private static nuint ZSTD_compressBlock_fast_dictMatchState_generic(ZSTD_matchSt
492492
nuint step = stepSize;
493493
const nuint kStepIncr = 1 << 8;
494494
byte* nextStep = ip0 + kStepIncr;
495-
while (1 != 0)
495+
while (true)
496496
{
497497
byte* match = @base + matchIndex;
498498
uint repIndex = curr + 1 - offset_1;

0 commit comments

Comments
 (0)