1
0
Fork 0

fix compile warning

This commit is contained in:
Jan Steemann 2015-05-21 17:00:29 +02:00
parent 892127d9a2
commit ef154cd1d9
1 changed files with 2 additions and 2 deletions

View File

@ -50,13 +50,13 @@ using Json = triagens::basics::Json;
/// @brief quick translation array from an AST node value type to a JSON type
////////////////////////////////////////////////////////////////////////////////
std::array<TRI_json_type_e, 5> const JsonTypes{
std::array<TRI_json_type_e, 5> const JsonTypes{ {
TRI_JSON_NULL, // VALUE_TYPE_NULL = 0,
TRI_JSON_BOOLEAN, // VALUE_TYPE_BOOL = 1,
TRI_JSON_NUMBER, // VALUE_TYPE_INT = 2,
TRI_JSON_NUMBER, // VALUE_TYPE_DOUBLE = 3,
TRI_JSON_STRING // VALUE_TYPE_STRING = 4
};
} };
static_assert(AstNodeValueType::VALUE_TYPE_NULL == 0, "incorrect ast node value types");
static_assert(AstNodeValueType::VALUE_TYPE_BOOL == 1, "incorrect ast node value types");