From b5d009f6017f8f03643dc25c729402f93c0dcaf0 Mon Sep 17 00:00:00 2001 From: yixy-only Date: Mon, 18 Aug 2025 02:35:28 +0800 Subject: [PATCH] [sinfl] Remove the redundant literal suffix to be compatible with VS2010 The type of result of the shift operator operation depends on the type of the left operand.VS2010 only recognizes ull, but does not recognize llu. --- sinfl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sinfl.h b/sinfl.h index 3f60e88..8d1134e 100644 --- a/sinfl.h +++ b/sinfl.h @@ -542,8 +542,8 @@ sinfl_decompress(unsigned char *out, int cap, const unsigned char *in, int size) } else if (offs == 1) { /* rle match copying */ unsigned int c = src[0]; - unsigned int hw = (c << 24u) | (c << 16u) | (c << 8u) | (unsigned)c; - unsigned long long w = (unsigned long long)hw << 32llu | hw; + unsigned long long hw = (c << 24) | (c << 16) | (c << 8) | c; + unsigned long long w = (hw << 32) | hw; dst = sinfl_write64(dst, w); dst = sinfl_write64(dst, w); do dst = sinfl_write64(dst, w);