Explorar o código

Merge branch 'master' into v2.1

Mike Pall %!s(int64=11) %!d(string=hai) anos
pai
achega
5f370d9071
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/lj_crecord.c

+ 4 - 1
src/lj_crecord.c

@@ -860,8 +860,11 @@ again:
 
   /* Resolve reference for field. */
   ct = ctype_get(cts, sid);
-  if (ctype_isref(ct->info))
+  if (ctype_isref(ct->info)) {
     ptr = emitir(IRT(IR_XLOAD, IRT_PTR), ptr, 0);
+    sid = ctype_cid(ct->info);
+    ct = ctype_get(cts, sid);
+  }
 
   while (ctype_isattrib(ct->info))
     ct = ctype_child(cts, ct);  /* Skip attributes. */