DescriptionUpdate the C++ generator to work around a MSVC integral constant bug
MSVC doesn't use the C++11 type rules for integral constants. A literal
-2147483648 is parsed in two steps:
1) MSVC evalutes 2147483648. Since it is greater than 2^31-1, it decides
the type of the integral constant should be unsigned int.
2) It then applies unary minus to an unsigned int, which doesn't do
anything.
To work around this, the C++ binding generator detects this edge case
and splits the constant in two.
BUG=445618
R=hansmuller@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/e3719475d5971283d1d2250533d53066b2ff9797
Patch Set 1 #Patch Set 2 : Spaces and grammar #Patch Set 3 : With comment #
Messages
Total messages: 8 (2 generated)
|