From 34d2a71fdd3c14c980a57d5247dae9ac7586fe5b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Mon, 24 Jan 2005 14:26:24 +0000 Subject: More int -> long git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers/ata.c') diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 20e6247fb9..0983fb52ee 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -287,7 +287,7 @@ static void copy_read_sectors(unsigned char* buf, int wordcount) #ifdef PREFER_C_READING unsigned short tmp = 0; - if ( (unsigned int)buf & 1) + if ( (unsigned long)buf & 1) { /* not 16-bit aligned, copy byte by byte */ unsigned char* bufend = buf + wordcount*2; do @@ -567,7 +567,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount) { #ifdef PREFER_C_WRITING - if ( (unsigned int)buf & 1) + if ( (unsigned long)buf & 1) { /* not 16-bit aligned, copy byte by byte */ unsigned short tmp = 0; const unsigned char* bufend = buf + wordcount*2; -- cgit v1.2.3