Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Trouble with DIGROM2.TGZ (new ata.c)

Trouble with DIGROM2.TGZ (new ata.c)

From: alankorr <alankorr_at_subdimension.com>
Date: Sat, 19 Jan 2002 17:15:55 GMT

Hummm ja es gibt noch ein Problem !

My bug fix in ata.c wasn't really one.
Maybe "cluster = (swabHI(root[i].cluster_hi)<<16)|((unsigned
short)swabHI(root[i].cluster_lo));" should have been
"cluster =
(swabHI(root[i].cluster_hi)<<16)|swabHI(((unsigned short
*)(&(root[i].cluster_lo));"

But anyway I changed struct { ... } root[...]; to have field
"cluster_lo" as unsigned short instead of short. That way we
should not have this undesirable signed extension at all
even with "cluster =
(swabHI(root[i].cluster_hi)<<16)|swabHI(root[i].cluster_lo);
" now.

I really hope this version works.



_____________________________________________________________________
// free anonymous email || forums \\ subZINE || anonymous browsing
            subDIMENSION -- http://www.subdimension.com

  • application/x-zip-compressed attachment: ata.zip
Received on 2002-01-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy