From b940b99c81f87afb45a5a50edaf3028fedb1d963 Mon Sep 17 00:00:00 2001 From: Vlad Brezae Date: Mon, 6 Jun 2016 15:37:03 +0300 Subject: [PATCH] [sgen] Fix define argument 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/sgen/sgen-descriptor.h b/mono/sgen/sgen-descriptor.h index 2b1f9e4da49..54e1b7681fb 100644 --- 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)); \ -- 2.11.4.GIT