From 3aaa0f60cdc0f1c63221ae7ac6e0ce2f11a175cb Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 11 Feb 2008 22:53:41 +0200 Subject: Comparison between signed and unsigned fixed. storage/maria/ma_loghandler.c: Fixed comparison of signed and unsigned. --- storage/maria/ma_loghandler.c | 4 ++-- 1 file 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); -- cgit v1.2.1