diff mbox series

Add fixed underlying type to enum path::format

Message ID 20190308135529.GA25905@redhat.com
State New
Headers show
Series Add fixed underlying type to enum path::format | expand

Commit Message

Jonathan Wakely March 8, 2019, 1:55 p.m. UTC
* include/bits/fs_path.h (path::format): Add fixed underlying type.

Tested powerpc64le-linux, committed to trunk.
commit 9bb37d0b7196d4a97d65ff597af884e2fa4ebb52
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Mar 7 15:00:56 2019 +0000

    Add fixed underlying type to enum path::format
    
            * include/bits/fs_path.h (path::format): Add fixed underlying type.
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h
index 077045e6c78..96033f68c36 100644
--- a/libstdc++-v3/include/bits/fs_path.h
+++ b/libstdc++-v3/include/bits/fs_path.h
@@ -166,7 +166,7 @@  _GLIBCXX_BEGIN_NAMESPACE_CXX11
 #endif
     typedef std::basic_string<value_type>	string_type;
 
-    enum format { native_format, generic_format, auto_format };
+    enum format : unsigned char { native_format, generic_format, auto_format };
 
     // constructors and destructor