summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-07-05 22:38:38 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-07-05 22:38:38 +0200
commitb792411a7af39b74152a96949dfb3ee4b1e52a40 (patch)
tree04e5ca6e8c8e9d50b30dc3f88448707de503e0e0 /sql/parse_file.cc
parentf9cb1467b84aba6cdc3178617def27c2993f016d (diff)
downloadmariadb-git-b792411a7af39b74152a96949dfb3ee4b1e52a40.tar.gz
fix compile warnings
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r--sql/parse_file.cc4
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));