network: use numeric_limits for OFFSET_MAX instead of hardcoded constant

This commit is contained in:
Alexander Krotov
2016-11-28 15:41:37 +03:00
parent 0c22e3b184
commit 918dbb5003

View File

@@ -21,10 +21,11 @@
#include "ns3/log.h"
#include <vector>
#include <cstring>
#include <limits>
#define USE_FREE_LIST 1
#define FREE_LIST_SIZE 1000
#define OFFSET_MAX (2147483647)
#define OFFSET_MAX (std::numeric_limits<int32_t>::max ())
namespace ns3 {