Skip to content

Commit

Permalink
fix issue 13975: add missing masking of Tty
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Mar 31, 2016
1 parent e0eea26 commit 5601d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/cgcv.c
Expand Up @@ -1855,7 +1855,7 @@ unsigned cv4_typidx(type *t)
// The visual studio debugger gets confused with pointers to arrays, emit a reference instead.
// This especially happens when passing arrays as function arguments because 64bit ABI demands
// passing structs > 8 byte as pointers.
if((config.flags2 & CFG2gms) && t->Tnext && t->Tnext->Tty == TYdarray)
if((config.flags2 & CFG2gms) && t->Tnext && tybasic(t->Tnext->Tty) == TYdarray)
TOLONG(d->data + 6,attribute | 0x20);
else
{
Expand Down Expand Up @@ -2113,7 +2113,7 @@ unsigned cv4_typidx(type *t)
typidx = cv4_enum(t->Ttag);
else
#endif
typidx = dttab4[t->Tnext->Tty];
typidx = dttab4[tybasic(t->Tnext->Tty)];
break;

#if SCPP
Expand Down

0 comments on commit 5601d51

Please sign in to comment.