Revision 324e7ee2 cmdutils.c

View differences:

cmdutils.c
198 198
            } else if (po->flags & OPT_INT64) {
199 199
                *po->u.int64_arg = parse_number_or_die(opt, arg, OPT_INT64, INT64_MIN, INT64_MAX);
200 200
            } else if (po->flags & OPT_FLOAT) {
201
                *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -1.0/0.0, 1.0/0.0);
201
                *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -INFINITY, INFINITY);
202 202
            } else if (po->flags & OPT_FUNC2) {
203 203
                if (po->u.func2_arg(opt, arg) < 0) {
204 204
                    fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);

Also available in: Unified diff