Skip to content

Commit

Permalink
Add temporary fix for issue #378
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdr committed Mar 18, 2012
1 parent f4e8318 commit ecaac1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/string_gc.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -674,7 +674,8 @@ aligned_mem(ARGIN(SHIM(const Parrot_Buffer *buffer)), ARGIN(char *mem))
{ {
ASSERT_ARGS(aligned_mem) ASSERT_ARGS(aligned_mem)
mem += sizeof (void *); mem += sizeof (void *);
mem = (char *)(((unsigned long)(mem + WORD_ALIGN_1)) & WORD_ALIGN_MASK); // FIXME: issue #378
mem = (char *)(((UINTVAL)(mem + WORD_ALIGN_1)) & WORD_ALIGN_MASK);


return mem; return mem;
} }
Expand Down

0 comments on commit ecaac1a

Please sign in to comment.