Skip to content

Commit

Permalink
rtt_dynamic_reconfigure: fixed AutoConfig maximum value for type unsi…
Browse files Browse the repository at this point in the history
…gned int

unsigned int values are represented as int in dynamic_reconfigure. Therefore the maximum possible value is INT_MAX.
UINT_MAX translates to -1 if assigned to an int.
  • Loading branch information
meyerj committed May 17, 2015
1 parent 16f1404 commit 7855b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtt_dynamic_reconfigure/src/auto_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ template <> struct PropertyTypeInfo<unsigned int>
static std::string getType() { return "int"; }
static bool hasLimits() { return true; }
static int getMin() { return 0; }
static int getMax() { return UINT_MAX; }
static int getMax() { return INT_MAX; }
};

template <> struct PropertyTypeInfo<std::string>
Expand Down

0 comments on commit 7855b3f

Please sign in to comment.