Commit 7a1c975c3be98c64db3de7235dfde668c1102d22

Authored by Georg Hopp
1 parent 4b02cc23

fix inheritance of class variables

Showing 1 changed file with 2 additions and 2 deletions
@@ -81,9 +81,9 @@ @@ -81,9 +81,9 @@
81 ((struct c_##name##_vars *)(TR_CLASS_BY_NAME_STATIC(name))->vars) 81 ((struct c_##name##_vars *)(TR_CLASS_BY_NAME_STATIC(name))->vars)
82 82
83 #define TR_INHERIT_CLASSVARS(dest, src) \ 83 #define TR_INHERIT_CLASSVARS(dest, src) \
84 - memcpy(&c_##dest##_vars, \ 84 + memcpy(TR_CLASSVARS_BY_NAME(dest), \
85 TR_CLASSVARS_BY_NAME(src), \ 85 TR_CLASSVARS_BY_NAME(src), \
86 - sizeof(TR_CLASSVAR_DECL(src))) 86 + sizeof(TR_CLASSVARS_DECL(src)))
87 87
88 88
89 /** 89 /**
Please register or login to post a comment