diff options
author | georg@lmy002.wdf.sap.corp <> | 2005-06-13 12:41:15 +0200 |
---|---|---|
committer | georg@lmy002.wdf.sap.corp <> | 2005-06-13 12:41:15 +0200 |
commit | b64e6db5a4d6807fe693c22b5b743968264a83dc (patch) | |
tree | 0a4d130bc8c5eb5d2582f3864b50584de7a5647f /sql/field.cc | |
parent | 55f962c0cfff56ce5d9e0639072fdd65541ea471 (diff) | |
download | mariadb-git-b64e6db5a4d6807fe693c22b5b743968264a83dc.tar.gz |
fixes for windows 64-bit compiler warnings
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/field.cc b/sql/field.cc index 89ef25475ff..acf3c0647cb 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -1920,7 +1920,7 @@ int Field_decimal::store(const char *from, uint len, CHARSET_INFO *cs) int_digits_added_zeros=0; } } - tmp_uint= (tmp_dec+(int_digits_end-int_digits_from)+ + tmp_uint= (uint) (tmp_dec+(int_digits_end-int_digits_from)+ (uint)(frac_digits_from-int_digits_tail_from)+ int_digits_added_zeros); } @@ -7734,9 +7734,9 @@ bool Field_enum::eq_def(Field *field) for (uint i=0 ; i < from_lib->count ; i++) if (my_strnncoll(field_charset, (const uchar*)typelib->type_names[i], - strlen(typelib->type_names[i]), + (uint) strlen(typelib->type_names[i]), (const uchar*)from_lib->type_names[i], - strlen(from_lib->type_names[i]))) + (uint) strlen(from_lib->type_names[i]))) return 0; return 1; } @@ -8594,7 +8594,8 @@ Field::set_datetime_warning(MYSQL_ERROR::enum_warning_level level, uint code, { char str_nr[22]; char *str_end= longlong10_to_str(nr, str_nr, -10); - make_truncated_value_warning(table->in_use, str_nr, str_end - str_nr, + make_truncated_value_warning(table->in_use, str_nr, + (uint) (str_end - str_nr), ts_type, field_name); } } |