[gcc r13-6768] libstdc++: Fix formatting in std::filesystem helper function

Jonathan Wakely redi@gcc.gnu.org
Mon Mar 20 23:04:04 GMT 2023


https://gcc.gnu.org/g:ccfca55536f87a1332f844efcc66b8383030d149

commit r13-6768-gccfca55536f87a1332f844efcc66b8383030d149
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Mar 20 13:40:59 2023 +0000

    libstdc++: Fix formatting in std::filesystem helper function
    
    libstdc++-v3/ChangeLog:
    
            * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
            formatting.

Diff:
---
 libstdc++-v3/src/filesystem/ops-common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/src/filesystem/ops-common.h b/libstdc++-v3/src/filesystem/ops-common.h
index abbfca43e5c..c95511b5c95 100644
--- a/libstdc++-v3/src/filesystem/ops-common.h
+++ b/libstdc++-v3/src/filesystem/ops-common.h
@@ -625,7 +625,8 @@ _GLIBCXX_BEGIN_NAMESPACE_FILESYSTEM
       {
 	buf.resize(len);
 	len = GetTempPathW(buf.size(), buf.data());
-      } while (len > buf.size());
+      }
+    while (len > buf.size());
 
     if (len == 0)
       ec = __last_system_error();


More information about the Libstdc++-cvs mailing list