projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[runtime] Fix sizeof MonoArray with non gnu compiler
[mono.git]
/
mono
/
metadata
/
object-internals.h
diff --git
a/mono/metadata/object-internals.h
b/mono/metadata/object-internals.h
index eb9e1c61a8c9d0e58ae4a84e29eaa806ce741306..115079beac398dd7260751cd8eef4eb385872d12 100644
(file)
--- a/
mono/metadata/object-internals.h
+++ b/
mono/metadata/object-internals.h
@@
-163,6
+163,8
@@
struct _MonoArray {
double vector [MONO_ZERO_LEN_ARRAY];
};
+#define MONO_SIZEOF_MONO_ARRAY (sizeof (MonoArray) - MONO_ZERO_LEN_ARRAY * sizeof (double))
+
struct _MonoString {
MonoObject object;
int32_t length;