summaryrefslogtreecommitdiff
path: root/mysys/my_getopt.c
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-15 14:45:08 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-15 14:45:08 -0300
commit0e6fcb393c0cd0ea6288d4b0c62f1bd6c0ea9ea3 (patch)
tree2c1b96fba8528b2f154fe867bd2ed49704e8d035 /mysys/my_getopt.c
parentaaf5f8d5c456a72b8d75013f534e12e92d2752c9 (diff)
downloadmariadb-git-0e6fcb393c0cd0ea6288d4b0c62f1bd6c0ea9ea3.tar.gz
Bug#45288: pb2 returns a lot of compilation warnings on linux
Fix compiler warnings due to: a mismatch in the prototypes for check_access and implicit conversions from double to ulonglong and vice-versa.
Diffstat (limited to 'mysys/my_getopt.c')
-rw-r--r--mysys/my_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 7443405f97c..e4b199dab84 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -1032,7 +1032,7 @@ static void init_one_value(const struct my_option *option, void *variable,
*((ulonglong*) variable)= (ulonglong) value;
break;
case GET_DOUBLE:
- *((double*) variable)= (double) value;
+ *((double*) variable)= ulonglong2double(value);
break;
case GET_STR:
/*