summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-06-12 18:46:12 +0200
committerunknown <serg@serg.mylan>2003-06-12 18:46:12 +0200
commitb30bfd247c3fc508bb4b3578e64bd6846d8864e0 (patch)
tree3ce44c1217dd1cf2236ba11213bfa3043412a56c /mysys
parent7c3cf3179c9d62cce1650a61e80686dda006c88a (diff)
downloadmariadb-git-b30bfd247c3fc508bb4b3578e64bd6846d8864e0.tar.gz
removed a wrong cast that limited ulonglong options to max. ulong value.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 759c96462f6..e18c5a0b9eb 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -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)
{
- 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 */
- num= (ulonglong) (ulong) optp->max_value;
+ num= (ulonglong) optp->max_value;
if (optp->block_size > 1)
{
num/= (ulonglong) optp->block_size;