Signed-off-by: Serge Gautherie winehq-git_serge_180711@gautherie.fr --- ReactOS: '...\sdk\lib\rtl\compress.c(62): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)' --- dlls/ntdll/rtl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c index cf21c98..df9dd8d 100644 --- a/dlls/ntdll/rtl.c +++ b/dlls/ntdll/rtl.c @@ -1877,7 +1877,10 @@ static UCHAR *lznt1_decompress_chunk(UCHAR *dst, ULONG dst_size, UCHAR *src, ULO
/* find length / displacement bits */ for (displacement_bits = 12; displacement_bits > 4; displacement_bits--) - if ((1 << (displacement_bits - 1)) < dst_cur - dst) break; + { + if (((SIZE_T)1 << (displacement_bits - 1)) < dst_cur - dst) + break; + }
length_bits = 16 - displacement_bits; code_length = (code & ((1 << length_bits) - 1)) + 3;