aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-manual.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 20:02:05 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 20:04:36 +0100
commitf0b7fc1ecb80cb34a45e60d07e9c53745b251686 (patch)
treefd492257cd76b856d9f9282e6bd69c650aea9797 /src/location-manual.c
parentConsistently use (locally defined) WINDOWS macro over mixing __WIN32__ and _WIN32 (diff)
downloadredshift-ng-f0b7fc1ecb80cb34a45e60d07e9c53745b251686.tar.gz
redshift-ng-f0b7fc1ecb80cb34a45e60d07e9c53745b251686.tar.bz2
redshift-ng-f0b7fc1ecb80cb34a45e60d07e9c53745b251686.tar.xz
Just use double, no mixing in float
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/location-manual.c')
-rw-r--r--src/location-manual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location-manual.c b/src/location-manual.c
index 0048128..b07ca4f 100644
--- a/src/location-manual.c
+++ b/src/location-manual.c
@@ -79,7 +79,7 @@ location_manual_set_option(struct location_state *state, const char *key,
/* Parse float value */
char *end;
errno = 0;
- float v = strtof(value, &end);
+ double v = strtod(value, &end);
if (errno != 0 || *end != '\0') {
fputs(_("Malformed argument.\n"), stderr);
return -1;