summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorTorsten Paul <Torsten.Paul@gmx.de>2013-11-15 18:41:37 (GMT)
committerTorsten Paul <Torsten.Paul@gmx.de>2013-11-15 18:41:37 (GMT)
commitf46bd3788f75e691b65aaf0e4ffb1db1029ef717 (patch)
tree118843f04ff826255387e7886fe38573dbae7d8e /src/value.cc
parent1fcad169e623d776eb297c324304fb6836ec1e62 (diff)
Change nbsteps() to uint32_t to make it independent from 32/64-bit platform.
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.cc b/src/value.cc
index 931c616..5afb650 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -625,13 +625,13 @@ void Value::RangeType::normalize() {
}
}
-unsigned long Value::RangeType::nbsteps() const {
+uint32_t Value::RangeType::nbsteps() const {
if (begin_val == end_val) {
return 0;
}
if (step_val == 0) {
- return std::numeric_limits<unsigned long>::max();
+ return std::numeric_limits<uint32_t>::max();
}
double steps;
contact: Jan Huwald // Impressum