summaryrefslogtreecommitdiff
path: root/src/config/Param.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 22:19:36 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 22:19:36 +0100
commita38f02541d82ce27666e27bf7e3123bff621ca70 (patch)
tree1180a760127795137085a9c332b50bd997deb5a6 /src/config/Param.hxx
parentfdba76ba47920a5dc1cc23f0be3131e4b85a041a (diff)
config/Param: make "line" signed
Diffstat (limited to 'src/config/Param.hxx')
-rw-r--r--src/config/Param.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/Param.hxx b/src/config/Param.hxx
index 7f3737494..a3cd3f83a 100644
--- a/src/config/Param.hxx
+++ b/src/config/Param.hxx
@@ -38,7 +38,7 @@ struct config_param {
std::string value;
- unsigned int line;
+ int line;
std::vector<BlockParam> block_params;
@@ -66,7 +66,7 @@ struct config_param {
* configuration file.
*/
bool IsNull() const {
- return line == unsigned(-1);
+ return line < 0;
}
gcc_nonnull_all