projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dfda9e
)
Fix for VisualStudio. It is treating a 2 bit enum as a signed int for comparison...
author
Chuck Rose III
<cfr@adobe.com>
Sat, 8 Sep 2007 04:17:08 +0000
(
04:17
+0000)
committer
Chuck Rose III
<cfr@adobe.com>
Sat, 8 Sep 2007 04:17:08 +0000
(
04:17
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41784
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APFloat.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APFloat.h
b/include/llvm/ADT/APFloat.h
index be7b457054d0c44f7e96efaf67d44b5360607653..83c370eb74595a5862a87e2abd27fadff02e3d6b 100644
(file)
--- 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;