diff options
author | Chuck Rose III <cfr@adobe.com> | 2007-09-08 04:17:08 +0000 |
---|---|---|
committer | Chuck Rose III <cfr@adobe.com> | 2007-09-08 04:17:08 +0000 |
commit | ffe8f3c4f23c7abc026c5dfe3f7e5a764c976883 (patch) | |
tree | 046bad194c01f4ec20c2788e285669029fd4f2a2 /include | |
parent | 070c61acf8bbff55d752a9e27efb283c01ec6914 (diff) | |
download | external_llvm-ffe8f3c4f23c7abc026c5dfe3f7e5a764c976883.zip external_llvm-ffe8f3c4f23c7abc026c5dfe3f7e5a764c976883.tar.gz external_llvm-ffe8f3c4f23c7abc026c5dfe3f7e5a764c976883.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index be7b457..83c370e 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -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; |