Skip to content

Commit

Permalink
* fix decompress() for 64-bits
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwalkerlewis committed Jan 7, 2011
1 parent f3a30b0 commit e0f9dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/be_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ unsigned char *string_ptr;
#define MIN3B (-0x00800000)
#define MIN4B (-0x80000000)

object decompress(unsigned int c)
object decompress(uintptr_t c)
// read a compressed Euphoria object
// if c is set, then c is not <= 248
{
Expand Down Expand Up @@ -76,7 +76,7 @@ object decompress(unsigned int c)
len = *string_ptr++;
}
else {
len = *(unsigned int *)string_ptr;
len = *(uint32_t *)string_ptr;
string_ptr += 4;
}
s = NewS1(len);
Expand Down
3 changes: 2 additions & 1 deletion source/be_decompress.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#ifndef BE_DECOMPRESS_H_
#define BE_DECOMPRESS_H_
object decompress(unsigned int c);
#include <stdint.h>
object decompress(uintptr_t c);
#endif

0 comments on commit e0f9dbb

Please sign in to comment.