encoding: explicitly declare RouteFlags as uint64_t
It was always expected to be a 64-bit unsigned value,
but it was not declared as such.
Change-Id: I2648c115d0f8052d671946aa8f40e883b0ab449e
Refs: #3903
diff --git a/src/encoding/nfd-constants.cpp b/src/encoding/nfd-constants.cpp
index ac34588..c1c8060 100644
--- a/src/encoding/nfd-constants.cpp
+++ b/src/encoding/nfd-constants.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2014 Regents of the University of California.
+ * Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -20,6 +20,7 @@
*/
#include "nfd-constants.hpp"
+
#include <iostream>
#include <map>
@@ -148,7 +149,7 @@
printToken("0x");
std::ios_base::fmtflags oldFmt = os.flags();
os << std::hex << std::nouppercase
- << static_cast<unsigned>(routeFlags);
+ << static_cast<uint64_t>(routeFlags);
os.flags(oldFmt);
}
diff --git a/src/encoding/nfd-constants.hpp b/src/encoding/nfd-constants.hpp
index 7026898..8b57def 100644
--- a/src/encoding/nfd-constants.hpp
+++ b/src/encoding/nfd-constants.hpp
@@ -99,7 +99,7 @@
/** \ingroup management
*/
-enum RouteFlags {
+enum RouteFlags : uint64_t {
ROUTE_FLAGS_NONE = 0,
ROUTE_FLAG_CHILD_INHERIT = 1,
ROUTE_FLAG_CAPTURE = 2,