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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user