]> mj.ucw.cz Git - libucw.git/commitdiff
xtypes: xt_double bugfix in parsing of precision
authorRobert Kessl <kesslr@centrum.cz>
Mon, 4 Aug 2014 11:47:40 +0000 (13:47 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Mon, 4 Aug 2014 11:47:40 +0000 (13:47 +0200)
ucw/xtypes-basic.c

index 26d7cb1f54b191ac64cdbcd2014573d83ed09a73..26651855e4ac657b10104fe97001300b4da93638 100644 (file)
@@ -84,7 +84,7 @@ static const char *xt_double_parse(const char *str, void *dest, struct mempool *
 static const char * xt_double_fmt_parse(const char *str, u32 *dest, struct mempool *pool)
 {
   uint precision = 0;
-  const char *tmp_err = str_to_uint(&precision, str, NULL, 0);
+  const char *tmp_err = str_to_uint(&precision, str, NULL, 10);
   if (tmp_err)
     return mp_printf(pool, "Could not parse floating point number precision: %s", tmp_err);