config/Param: make "line" signed

This commit is contained in:
Max Kellermann
2015-01-21 22:19:36 +01:00
parent fdba76ba47
commit a38f02541d
3 changed files with 7 additions and 7 deletions

View File

@@ -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