зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1024842 - Make StructuredDataType a typed enum in order to avoid C++11 narrowing conversion warnings when the values of the enum are used in the switch statement later in the file; r=Waldo
This commit is contained in:
Родитель
03ce6fee26
Коммит
a74b4792e7
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "mozilla/Endian.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
#include "mozilla/TypedEnum.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -53,7 +54,7 @@ using mozilla::LittleEndian;
|
|||
using mozilla::NativeEndian;
|
||||
using JS::CanonicalizeNaN;
|
||||
|
||||
enum StructuredDataType {
|
||||
enum StructuredDataType MOZ_ENUM_TYPE(uint32_t) {
|
||||
/* Structured data types provided by the engine */
|
||||
SCTAG_FLOAT_MAX = 0xFFF00000,
|
||||
SCTAG_NULL = 0xFFFF0000,
|
||||
|
|
Загрузка…
Ссылка в новой задаче