summaryrefslogtreecommitdiff
path: root/src/post/goom/goomsl_heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post/goom/goomsl_heap.c')
-rw-r--r--src/post/goom/goomsl_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post/goom/goomsl_heap.c b/src/post/goom/goomsl_heap.c
index 73943bf95..6ec91a46c 100644
--- a/src/post/goom/goomsl_heap.c
+++ b/src/post/goom/goomsl_heap.c
@@ -39,7 +39,7 @@ static void align_it(GoomHeap *_this, int alignment)
{
if ((alignment > 1) && (_this->number_of_arrays>0)) {
void *last_array = _this->arrays[_this->number_of_arrays - 1];
- int last_address = (int)last_array + _this->consumed_in_last_array;
+ long last_address = (long)last_array + _this->consumed_in_last_array;
int decal = (last_address % alignment);
if (decal != 0) {
_this->consumed_in_last_array += alignment - decal;