1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fixed compilation warnings. addendum to the fix for bug 29125

This commit is contained in:
Georgi Kodinov
2009-03-20 16:27:53 +02:00
parent 26adc3cdc7
commit e8cc09dc8d
7 changed files with 10 additions and 12 deletions

View File

@@ -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];