projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b80b9
)
Fix some pointer/integer size issues in unwind.c on 32-bit systems.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Wed, 4 Dec 2013 16:31:47 +0000
(17:31 +0100)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Wed, 4 Dec 2013 16:31:47 +0000
(17:31 +0100)
mono/mini/unwind.c
patch
|
blob
|
history
diff --git
a/mono/mini/unwind.c
b/mono/mini/unwind.c
index 350b08f64f60990a64381da7717221ccc73893ff..018ad903e40307776f205a93c9962bc66d260e4b 100644
(file)
--- a/
mono/mini/unwind.c
+++ b/
mono/mini/unwind.c
@@
-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;
@@
-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) {