Skip to content

Commit 617e57e

Browse files
committed
Add explicit cast to fix warning about possible loss of data.
1 parent 80d4008 commit 617e57e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compat/LzmaCompatDecode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ int LZMACALL lzmaCompatDecode(lzma_stream *s)
140140
{
141141
UInt32 bound;
142142
UInt32 pos;
143-
143+
144144
/* restore decoder state */
145145
lzma_stream _s = *s;
146146

@@ -240,7 +240,7 @@ int LZMACALL lzmaCompatDecode(lzma_stream *s)
240240
while (numProbs--)
241241
p[numProbs] = kBitModelTotal >> 1;
242242

243-
243+
244244
//for (i = 0, newDictionarySize = 0; i < 4; i++)
245245
for (i = 0, _s.temp3 = 0; i < 4; i++)
246246
{
@@ -306,7 +306,7 @@ int LZMACALL lzmaCompatDecode(lzma_stream *s)
306306
}
307307
}
308308
while (symbol < 0x100);
309-
previousByte = symbol;
309+
previousByte = (Byte)symbol;
310310
}
311311
isPreviousMatch = 0;
312312
}
@@ -319,7 +319,7 @@ int LZMACALL lzmaCompatDecode(lzma_stream *s)
319319
RC_GET_BIT(LZMA_C_LITD, prob, symbol)
320320
}
321321
while (symbol < 0x100);
322-
previousByte = symbol;
322+
previousByte = (Byte)symbol;
323323
}
324324
NEED_OUT(LZMA_C_OUTPUT_1);
325325
PUT_BYTE(previousByte);

0 commit comments

Comments
 (0)