aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-07 10:47:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-11 08:31:07 +0000
commitc2be3408edcafa42f49d9fc4f3bfc72fe76b419e (patch)
treecf82f5db6167125dcdb9d320ffa3ad90bd317127
parentconfig: letter-spacing: make this a relative value (diff)
config; {horizontal,vertical}-letter-offsets may be negative
-rw-r--r--config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.c b/config.c
index 8f0b334f..e02167af 100644
--- a/config.c
+++ b/config.c
@@ -591,8 +591,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
else if (strcmp(key, "horizontal-letter-offset") == 0) {
- unsigned long offset;
- if (!str_to_ulong(value, 10, &offset)) {
+ long offset;
+ if (!str_to_long(value, 10, &offset)) {
LOG_AND_NOTIFY_ERR(
"%s:%d: [default]: horizontal-letter-offset: "
"expected an integer, got '%s'", path, lineno, value);
@@ -602,8 +602,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
else if (strcmp(key, "vertical-letter-offset") == 0) {
- unsigned long offset;
- if (!str_to_ulong(value, 10, &offset)) {
+ long offset;
+ if (!str_to_long(value, 10, &offset)) {
LOG_AND_NOTIFY_ERR(
"%s:%d: [default]: horizontal-letter-offset: "
"expected an integer, got '%s'", path, lineno, value);