Skip to content

Commit

Permalink
BaseTools: fix LzmaCompress VS2013 make failure
Browse files Browse the repository at this point in the history
when make BaseTools by VS2013, LzmaEnc.c report warning C4127:
conditional expression is constant, so this patch fix this issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
  • Loading branch information
Yonghong Zhu committed Feb 29, 2016
1 parent 609730e commit b0c583c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,9 @@ static UInt32 GetOptimum(CLzmaEnc *p, UInt32 position, UInt32 *backRes)

if (repIndex == 0)
startLen = lenTest + 1;
#ifndef _MSC_VER
if (1 /* _maxMode */)
#endif
{
UInt32 lenTest2 = lenTest + 1;
UInt32 limit = lenTest2 + p->numFastBytes;
Expand Down

0 comments on commit b0c583c

Please sign in to comment.