Commit 977c66b4 authored by serg@serg.mylan's avatar serg@serg.mylan

removed a wrong cast that limited ulonglong options to max. ulong value.

parent 36aae14f
...@@ -609,9 +609,9 @@ static ulonglong getopt_ull(char *arg, const struct my_option *optp, int *err) ...@@ -609,9 +609,9 @@ static ulonglong getopt_ull(char *arg, const struct my_option *optp, int *err)
ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *optp) ulonglong getopt_ull_limit_value(ulonglong num, const struct my_option *optp)
{ {
if ((ulonglong) num > (ulonglong) (ulong) optp->max_value && if ((ulonglong) num > (ulonglong) optp->max_value &&
optp->max_value) /* if max value is not set -> no upper limit */ optp->max_value) /* if max value is not set -> no upper limit */
num= (ulonglong) (ulong) optp->max_value; num= (ulonglong) optp->max_value;
if (optp->block_size > 1) if (optp->block_size > 1)
{ {
num/= (ulonglong) optp->block_size; num/= (ulonglong) optp->block_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment