It has been reported that when building with Visual Studio 2017 version 15.5.1, a warning/compile error is shown in BodyInstanceCustomization.cpp: warning C4287: '<': unsigned/negative constant mismatch
In the destructor for FUpdateCollisionResponseHelper, there is a check that is making sure that an unsigned variable is not less than -1, which may never fire. I also noticed that there is a const variable that is created in the destructor that does not appear to be used.
The compile warning may not appear in Visual Studio 2015. I was only able to see it in Visual Studio 2017.
REGRESSION:
No. This code appears to be unchanged from 4.16. The code appears to have been added in CL 2931763.
RESULT:
The check may never fire since an unsigned value is being checked to see if it is less than -1 (warning C4287: '<': unsigned/negative constant mismatch). It also appears that the const ProeprtyOffset32 that is created is never used.
EXPECTED:
The check is removed or reworked to do a valid comparison. The creation of ProeprtyOffset32 is removed, or the variable is used (it may be intended to be passed into the call to PropagateDefaultValueChange()).
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-53507 in the post.
0 |
Component | UE - Simulation - Physics |
---|---|
Affects Versions | 4.17.2, 4.19, 4.20 |
Target Fix | 4.20 |
Created | Dec 15, 2017 |
---|---|
Resolved | Apr 30, 2018 |
Updated | Jun 23, 2018 |