diff options
author | Georgi Kodinov <joro@sun.com> | 2009-03-20 16:27:53 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-03-20 16:27:53 +0200 |
commit | e8cc09dc8df647f7786a7914cecf449570f2394e (patch) | |
tree | b7dcdd9f750b94c728ed5e3feed722a8809775ad /storage | |
parent | 26adc3cdc75815533fe47f978d6fa04d8562b643 (diff) | |
download | mariadb-git-e8cc09dc8df647f7786a7914cecf449570f2394e.tar.gz |
fixed compilation warnings. addendum to the fix for bug 29125
Diffstat (limited to 'storage')
-rw-r--r-- | storage/csv/transparent_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/csv/transparent_file.cc b/storage/csv/transparent_file.cc index a200fa6ac36..fad7cd796e5 100644 --- a/storage/csv/transparent_file.cc +++ b/storage/csv/transparent_file.cc @@ -82,7 +82,7 @@ char Transparent_file::get_value(off_t offset) size_t bytes_read; /* check boundaries */ - if ((lower_bound <= offset) && (offset < upper_bound)) + if ((lower_bound <= offset) && (((my_off_t) offset) < upper_bound)) return buff[offset - lower_bound]; VOID(my_seek(filedes, offset, MY_SEEK_SET, MYF(0))); @@ -95,7 +95,7 @@ char Transparent_file::get_value(off_t offset) upper_bound= lower_bound + bytes_read; /* end of file */ - if (upper_bound == offset) + if (upper_bound == (my_off_t) offset) return 0; return buff[0]; |