mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 21:32:49 +00:00
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.
llvm-svn: 41784
This commit is contained in:
parent
e6c68e7668
commit
788df70ec3
@ -276,7 +276,9 @@ namespace llvm {
|
||||
exponent_t exponent;
|
||||
|
||||
/* What kind of floating point number this is. */
|
||||
fltCategory category: 2;
|
||||
/* Only 2 bits are required, but VisualStudio incorrectly sign extends
|
||||
it. Using the extra bit keeps it from failing under VisualStudio */
|
||||
fltCategory category: 3;
|
||||
|
||||
/* The sign bit of this number. */
|
||||
unsigned int sign: 1;
|
||||
|
Loading…
Reference in New Issue
Block a user