network: use numeric_limits for OFFSET_MAX instead of hardcoded constant
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user