X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargp-parse.c;h=a1cbf884e8a2771213301c8ef627fd6a2524d30d;hb=cc75f4bb3955c9abed525e3ade88dc8f754b0ffe;hp=9a78778149365b763126c117c5fe0d9062c5202c;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/argp-parse.c b/lib/argp-parse.c index 9a7877814..a1cbf884e 100644 --- a/lib/argp-parse.c +++ b/lib/argp-parse.c @@ -339,7 +339,7 @@ convert_options (const struct argp *argp, values (the sign of the lower bits is preserved however)... */ cvt->long_end->val = - ((opt->key | real->key) & USER_MASK) + ((opt->key ? opt->key : real->key) & USER_MASK) + (((group - cvt->parser->groups) + 1) << USER_BITS); /* Keep the LONG_OPTS list terminated. */