diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-11 08:44:24 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-11 08:44:24 +0200 |
commit | 93690b96e2eb8b9717222cea1e2097d625cb6f50 (patch) | |
tree | 7cac4c10e8bd7e511d8df1dfcc91e5ad8e23a97e /unittest/mysys | |
parent | daabb4d055a59247d5294ddee364f5c265bc37cd (diff) | |
download | mariadb-git-93690b96e2eb8b9717222cea1e2097d625cb6f50.tar.gz |
Fix warnings in Win64
Diffstat (limited to 'unittest/mysys')
-rw-r--r-- | unittest/mysys/ma_dyncol-t.c | 2 | ||||
-rw-r--r-- | unittest/mysys/my_getopt-t.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unittest/mysys/ma_dyncol-t.c b/unittest/mysys/ma_dyncol-t.c index 3b43c10a6a8..124f16e15be 100644 --- a/unittest/mysys/ma_dyncol-t.c +++ b/unittest/mysys/ma_dyncol-t.c @@ -124,7 +124,7 @@ void test_value_single_double(double num, const char *name) if (mariadb_dyncol_get_num(&str, 1, &res)) goto err; rc= (res.type == DYN_COL_DOUBLE) && (res.x.double_value == num); - num= res.x.ulong_value; + num= res.x.double_value; err: ok(rc, "%s - %lf", name, num); /* cleanup */ diff --git a/unittest/mysys/my_getopt-t.c b/unittest/mysys/my_getopt-t.c index 39814d76690..3e16d79424e 100644 --- a/unittest/mysys/my_getopt-t.c +++ b/unittest/mysys/my_getopt-t.c @@ -72,7 +72,7 @@ void run(const char *arg, ...) arg= va_arg(ap, char*); } va_end(ap); - arg_c= arg_v - arg_s; + arg_c= (int)(arg_v - arg_s); arg_v= arg_s; res= handle_options(&arg_c, &arg_v, mopts_options, 0); } |