aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ConfigData.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx
index 9712eef3e..c6cabee6e 100644
--- a/src/ConfigData.cxx
+++ b/src/ConfigData.cxx
@@ -44,13 +44,10 @@ unsigned
block_param::GetUnsignedValue() const
{
char *endptr;
- long value2 = strtol(value.c_str(), &endptr, 0);
+ unsigned long value2 = strtoul(value.c_str(), &endptr, 0);
if (*endptr != 0)
FormatFatalError("Not a valid number in line %i", line);
- if (value2 < 0)
- FormatFatalError("Not a positive number in line %i", line);
-
return (unsigned)value2;
}