Skip to content

Commit 3cce078

Browse files
committed
Fixing build
1 parent 72aa9f8 commit 3cce078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/endianio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace endian_internal { namespace detail {
3737
#elif defined(__GNUG__)
3838
// Both libstdc++ and libc++ essentially do this.
3939
namespace endian_internal { namespace detail {
40-
enum class endian : uint8_t {
40+
enum class endian : uint16_t {
4141
big = __ORDER_BIG_ENDIAN__,
4242
little = __ORDER_LITTLE_ENDIAN__,
4343
native = __BYTE_ORDER__,
@@ -46,7 +46,7 @@ namespace endian_internal { namespace detail {
4646
#elif defined(_MSC_VER)
4747
// MS-STL does essentially this.
4848
namespace endian_internal { namespace detail {
49-
enum class endian : uint8_t {
49+
enum class endian : uint16_t {
5050
little = 1234,
5151
big = 4321,
5252
native = little

0 commit comments

Comments
 (0)