From 0072380d994228530d0eb0b7bc5175a3766049c7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 3 May 2018 11:01:58 -0400 Subject: [PATCH] support double type values in config file Change-Id: If6a722e0070246dbdae7cda7b488524f1e216d7d --- lib/auxlib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/auxlib.c b/lib/auxlib.c index 9c724176b..60b1f75a5 100644 --- a/lib/auxlib.c +++ b/lib/auxlib.c @@ -139,6 +139,9 @@ void config_load(int *argc, char ***argv, GOptionEntry *app_entries, const char case G_OPTION_ARG_INT: CONF_OPTION_GLUE(integer, int); + case G_OPTION_ARG_DOUBLE: + CONF_OPTION_GLUE(double, double); + case G_OPTION_ARG_STRING: case G_OPTION_ARG_FILENAME: CONF_OPTION_GLUE(string, char *);