http://d.puremagic.com/issues/show_bug.cgi?id=3373


Rainer Schuetze <r.sagita...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, wrong-code


--- Comment #1 from Rainer Schuetze <r.sagita...@gmx.de> 2009-10-08 00:01:22 
PDT ---
This is caused a bad check in cv4_typeidx() that will never use the basic
types, because cv4_typidx(t->Tnext) never returns 0. Instead, t->Tnext should
be tested:

Index: cgcv.c
===================================================================
--- cgcv.c    (revision 201)
+++ cgcv.c    (working copy)
@@ -1677,14 +1677,14 @@
     switch (tym)
     {
     case TYllong:
-        if (next)
+        if (t->Tnext)
         goto Ldelegate;
         assert(dt);
         typidx = dt;
         break;

     case TYullong:
-        if (next)
+        if (t->Tnext)
         goto Ldarray;
         assert(dt);
         typidx = dt;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to