projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
feeda99
)
[sgen] Fix define argument
author
Vlad Brezae
<brezaevlad@gmail.com>
Mon, 6 Jun 2016 12:37:03 +0000
(15:37 +0300)
committer
Vlad Brezae
<brezaevlad@gmail.com>
Mon, 6 Jun 2016 20:32:14 +0000
(23:32 +0300)
The code worked by accident because the function in which the define was expanded had an argument with the name desc.
mono/sgen/sgen-descriptor.h
patch
|
blob
|
history
diff --git
a/mono/sgen/sgen-descriptor.h
b/mono/sgen/sgen-descriptor.h
index 2b1f9e4da49c2bf558145f09e1757c354f4b1d06..54e1b7681fbe3fbb48a3c5385888b8b0d3567922 100644
(file)
--- a/
mono/sgen/sgen-descriptor.h
+++ b/
mono/sgen/sgen-descriptor.h
@@
-215,7
+215,7
@@
sgen_gc_descr_has_references (SgenDescriptor desc)
} while (0)
#endif
-#define OBJ_COMPLEX_FOREACH_PTR(
vt,obj)
do { \
+#define OBJ_COMPLEX_FOREACH_PTR(
desc,obj)
do { \
/* there are pointers */ \
void **_objptr = (void**)(obj); \
gsize *bitmap_data = sgen_get_complex_descriptor ((desc)); \