Re: [AD] Current SVN broken on OS X? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Current SVN broken on OS X?
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Wed, 29 Oct 2008 13:58:31 +0100
On 29 Oct 2008, at 13:32, Evert Glebbeek wrote:
Hopefully this can be resolved quickly. I consider it a show-stopper
for 4.9.6. Can someone else check that they don't have the same
problem, either on OS X or on another platform?
Figures it turned out to be an endianesse bug.
I commited the following change to fix it:
--- src/fshook.c (revision 11156)
+++ src/fshook.c (working copy)
@@ -379,7 +379,7 @@
int al_fs_entry_getc(ALLEGRO_FS_ENTRY *f)
{
- uint32_t c = 0;
+ uint8_t c = 0;
ASSERT(f);
if (al_fs_entry_read(&c, 1, f) != 1) {
I don't consider it to be particularly pretty, but it seems like the
easiest and most portable way to do it.
I had a quick look at the other get/put functions and they look ok (I
didn't run any code to test them).
Evert