llvm.org GIT mirror llvm / 418d360
Fix for VisualStudio. It is treating a 2 bit enum as a signed int for comparison purposes, causing failures. Using an extra bit fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41784 91177308-0d34-0410-b5e6-96231b3b80d8 Chuck Rose III 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
275275 exponent_t exponent;
276276
277277 /* What kind of floating point number this is. */
278 fltCategory category: 2;
278 /* Only 2 bits are required, but VisualStudio incorrectly sign extends
279 it. Using the extra bit keeps it from failing under VisualStudio */
280 fltCategory category: 3;
279281
280282 /* The sign bit of this number. */
281283 unsigned int sign: 1;