diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-09 19:53:27 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-10 06:19:50 +0000 |
commit | dc93ce8dea9136889f96659bbee15f9f265d6389 (patch) | |
tree | f25aecd7c24043855d427e202a80c9c6e5bfdbb2 /sql/sql_update.cc | |
parent | fa7a1a57d9d73c0b834c86c9f366dab66b16a908 (diff) | |
download | mariadb-git-dc93ce8dea9136889f96659bbee15f9f265d6389.tar.gz |
Windows : Fix truncation warnings in sql/
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 4488435491e..b1069efbbc8 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -80,7 +80,7 @@ bool compare_record(const TABLE *table) { if (field->real_maybe_null()) { - uchar null_byte_index= field->null_ptr - table->record[0]; + uchar null_byte_index= (uchar)(field->null_ptr - table->record[0]); if (((table->record[0][null_byte_index]) & field->null_bit) != ((table->record[1][null_byte_index]) & field->null_bit)) |