OK, now the 32bit fix should be working, keeping numbers right
(maybe issues could still exists in summary print)
This commit is contained in:
parent
9ae0d5e656
commit
b90a901684
@ -458,7 +458,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
if (end[0] == '%' && end[1] == '\0') {
|
if (end[0] == '%' && end[1] == '\0') {
|
||||||
// treat as percentage
|
// treat as percentage
|
||||||
v = v * (1L << (int)sizeof(long)*4) / 100.;
|
v = v * ((unsigned long long int)1 << 32) / 100.;
|
||||||
} else if (end[0] != '\0') {
|
} else if (end[0] != '\0') {
|
||||||
fprintf(stderr, "%s: extra characters after max-targets\n",
|
fprintf(stderr, "%s: extra characters after max-targets\n",
|
||||||
CMDLINE_PARSER_PACKAGE);
|
CMDLINE_PARSER_PACKAGE);
|
||||||
@ -467,7 +467,7 @@ int main(int argc, char *argv[])
|
|||||||
if (v <= 0) {
|
if (v <= 0) {
|
||||||
zconf.max_targets = 0;
|
zconf.max_targets = 0;
|
||||||
}
|
}
|
||||||
else if (v >= (1L << (int)sizeof(long)*4)) {
|
else if (v >= ((unsigned long long int)1 << 32)) {
|
||||||
zconf.max_targets = 0xFFFFFFFF;
|
zconf.max_targets = 0xFFFFFFFF;
|
||||||
} else {
|
} else {
|
||||||
zconf.max_targets = v;
|
zconf.max_targets = v;
|
||||||
|
Loading…
Reference in New Issue
Block a user