summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@oleksandr-byelkins-powerbook-g4-15.local>2008-02-11 22:53:41 +0200
committerunknown <bell@oleksandr-byelkins-powerbook-g4-15.local>2008-02-11 22:53:41 +0200
commit3aaa0f60cdc0f1c63221ae7ac6e0ce2f11a175cb (patch)
treec422a346dff4b518fe291a1a52db8302f6bb3c9f
parent17b9038942ecb17b83f4c61796705a6923c92b25 (diff)
downloadmariadb-git-3aaa0f60cdc0f1c63221ae7ac6e0ce2f11a175cb.tar.gz
Comparison between signed and unsigned fixed.
storage/maria/ma_loghandler.c: Fixed comparison of signed and unsigned.
-rw-r--r--storage/maria/ma_loghandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/maria/ma_loghandler.c b/storage/maria/ma_loghandler.c
index af60832d50d..7f909be87cf 100644
--- a/storage/maria/ma_loghandler.c
+++ b/storage/maria/ma_loghandler.c
@@ -2608,9 +2608,9 @@ translog_check_sector_protection(uchar *page, TRANSLOG_FILE *file)
only if it is old value, i.e. the sector was not written.
*/
if (((test < current) &&
- (0xFFL - current + test > DISK_DRIVE_SECTOR_SIZE / 3)) ||
+ ((uint)(0xFFL - current + test) > DISK_DRIVE_SECTOR_SIZE / 3)) ||
((test >= current) &&
- (test - current > DISK_DRIVE_SECTOR_SIZE / 3)))
+ ((uint)(test - current) > DISK_DRIVE_SECTOR_SIZE / 3)))
{
if (translog_recover_page_up_to_sector(page, offset))
DBUG_RETURN(1);