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:
Ehsan Akhgari 2014-06-13 17:36:13 -04:00
Родитель 03ce6fee26
Коммит a74b4792e7
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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,