diff options
Diffstat (limited to 'include/lldb/Utility/Endian.h')
-rw-r--r-- | include/lldb/Utility/Endian.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/lldb/Utility/Endian.h b/include/lldb/Utility/Endian.h index 2a102b63aa10..cead5f8603d2 100644 --- a/include/lldb/Utility/Endian.h +++ b/include/lldb/Utility/Endian.h @@ -1,9 +1,8 @@ //===-- Endian.h ------------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -24,7 +23,7 @@ static union EndianTest { } const endianTest = {0x01020304}; inline lldb::ByteOrder InlHostByteOrder() { - return (lldb::ByteOrder)endianTest.bytes[0]; + return static_cast<lldb::ByteOrder>(endianTest.bytes[0]); } // ByteOrder const InlHostByteOrder = (ByteOrder)endianTest.bytes[0]; |