diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-07-05 22:38:38 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-07-05 22:38:38 +0200 |
commit | b792411a7af39b74152a96949dfb3ee4b1e52a40 (patch) | |
tree | 04e5ca6e8c8e9d50b30dc3f88448707de503e0e0 /sql/parse_file.cc | |
parent | f9cb1467b84aba6cdc3178617def27c2993f016d (diff) | |
download | mariadb-git-b792411a7af39b74152a96949dfb3ee4b1e52a40.tar.gz |
fix compile warnings
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r-- | sql/parse_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/parse_file.cc b/sql/parse_file.cc index 5bc16e55ec0..3ccbfba5aff 100644 --- a/sql/parse_file.cc +++ b/sql/parse_file.cc @@ -381,7 +381,7 @@ sql_parse_prepare(const LEX_STRING *file_name, MEM_ROOT *mem_root, DBUG_RETURN(0); } - if (!(parser->buff= (char*) alloc_root(mem_root, stat_info.st_size+1))) + if (!(parser->buff= (char*) alloc_root(mem_root, (size_t)(stat_info.st_size+1)))) { DBUG_RETURN(0); } @@ -392,7 +392,7 @@ sql_parse_prepare(const LEX_STRING *file_name, MEM_ROOT *mem_root, } if ((len= my_read(file, (uchar *)parser->buff, - stat_info.st_size, MYF(MY_WME))) == + (size_t) stat_info.st_size, MYF(MY_WME))) == MY_FILE_ERROR) { my_close(file, MYF(MY_WME)); |