mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
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:
parent
03ce6fee26
commit
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,
|
||||
|
Loading…
Reference in New Issue
Block a user