Fix two APFloat bugs in converting hexadecimal constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index d15a21b..c13231d 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -2153,7 +2153,7 @@
integerPart hex_value;
if(*p == '.') {
- assert(dot == 0);
+ assert(dot == s.end());
dot = p++;
}
@@ -2190,7 +2190,7 @@
int expAdjustment;
/* Implicit hexadecimal point? */
- if(!dot)
+ if (dot == s.end())
dot = p;
/* Calculate the exponent adjustment implicit in the number of