]> gcc.gnu.org Git - gcc.git/blobdiff - libstdc++-v3/src/c++17/floating_from_chars.cc
libstdc++: case-sensitivity in hexfloat std::from_chars [PR105441]
[gcc.git] / libstdc++-v3 / src / c++17 / floating_from_chars.cc
index 13de1e346abb2677d3c18c9502ef603898056e3c..e7f3a58cf18f574f4d4c40ecd6b322588b15202d 100644 (file)
@@ -664,7 +664,7 @@ namespace
 
     // Parse the written exponent.
     int written_exponent = 0;
-    if (first != last && *first == 'p')
+    if (first != last && (*first == 'p' || *first == 'P'))
       {
        // Tentatively consume the 'p' and try to parse a decimal number.
        const char* const fallback_first = first;
This page took 0.027517 seconds and 5 git commands to generate.