summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-24 14:26:24 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-24 14:26:24 +0000
commit34d2a71fdd3c14c980a57d5247dae9ac7586fe5b (patch)
tree17d4c0e0c52da037203e5b18e6b48403ab93a5f6 /firmware/drivers/ata.c
parent1265d03141839c32e562331a15ce4374dbb8360d (diff)
downloadrockbox-34d2a71fdd3c14c980a57d5247dae9ac7586fe5b.tar.gz
rockbox-34d2a71fdd3c14c980a57d5247dae9ac7586fe5b.zip
More int -> long
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 2 insertions, 2 deletions
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)
287#ifdef PREFER_C_READING 287#ifdef PREFER_C_READING
288 unsigned short tmp = 0; 288 unsigned short tmp = 0;
289 289
290 if ( (unsigned int)buf & 1) 290 if ( (unsigned long)buf & 1)
291 { /* not 16-bit aligned, copy byte by byte */ 291 { /* not 16-bit aligned, copy byte by byte */
292 unsigned char* bufend = buf + wordcount*2; 292 unsigned char* bufend = buf + wordcount*2;
293 do 293 do
@@ -567,7 +567,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
567{ 567{
568#ifdef PREFER_C_WRITING 568#ifdef PREFER_C_WRITING
569 569
570 if ( (unsigned int)buf & 1) 570 if ( (unsigned long)buf & 1)
571 { /* not 16-bit aligned, copy byte by byte */ 571 { /* not 16-bit aligned, copy byte by byte */
572 unsigned short tmp = 0; 572 unsigned short tmp = 0;
573 const unsigned char* bufend = buf + wordcount*2; 573 const unsigned char* bufend = buf + wordcount*2;