Skip to content

Commit

Permalink
Fix some pointer/integer size issues in unwind.c on 32-bit systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Dec 4, 2013
1 parent 41b80b9 commit 4917c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mono/mini/unwind.c
Expand Up @@ -31,7 +31,7 @@ typedef struct {
guint8 info [MONO_ZERO_LEN_ARRAY];
} MonoUnwindInfo;

#define ALIGN_TO(val,align) ((((guint64)val) + ((align) - 1)) & ~((align) - 1))
#define ALIGN_TO(val,align) ((((size_t)val) + ((align) - 1)) & ~((align) - 1))

static CRITICAL_SECTION unwind_mutex;

Expand Down Expand Up @@ -784,7 +784,7 @@ decode_lsda (guint8 *lsda, guint8 *code, MonoJitExceptionInfo **ex_info, guint32
p += sizeof (gint32);

g_assert (landing_pad);
g_assert (((guint64)tinfo % 4) == 0);
g_assert (((size_t)tinfo % 4) == 0);
//printf ("X: %p %d\n", landing_pad, *(int*)tinfo);

if (ex_info) {
Expand Down

0 comments on commit 4917c94

Please sign in to comment.