Skip to content

Commit 1a9ce93

Browse files
committed
Fix MSVC C4146 warnings
The warning description: "unary minus operator applied to unsigned type, result still unsigned".
1 parent 1251401 commit 1a9ce93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jrd/sqz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ ULONG Difference::makeNoDiff(ULONG length)
581581
if (output >= end)
582582
return 0;
583583

584-
const auto max = MIN(length, 127);
584+
const int max = MIN(length, 127);
585585
*output++ = -max;
586586
length -= max;
587587
}
@@ -644,7 +644,7 @@ ULONG Difference::make(ULONG length1, const UCHAR* rec1,
644644
if (output >= end)
645645
return 0;
646646

647-
const auto max = MIN(count, 127);
647+
const int max = MIN(count, 127);
648648
*output++ = -max;
649649
count -= max;
650650
}

0 commit comments

Comments
 (0)