Fixed a problem with type printing in expression debug mode

git-svn-id: http://picoc.googlecode.com/svn/trunk@487 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2011-01-07 04:06:33 +00:00
parent 9a1d4f7b5c
commit c2ba9f063c

View file

@ -110,7 +110,7 @@ void ExpressionStackShow(struct ExpressionStack *StackTop)
case TypeStruct: printf("%s:struct", StackTop->Val->Val->Identifier); break;
case TypeUnion: printf("%s:union", StackTop->Val->Val->Identifier); break;
case TypeEnum: printf("%s:enum", StackTop->Val->Val->Identifier); break;
case Type_Type: PrintType(StackTop->Val->Val->Typ, &CStdOut); printf(":type"); break;
case Type_Type: PrintType(StackTop->Val->Val->Typ, CStdOut); printf(":type"); break;
default: printf("unknown"); break;
}
printf("[0x%lx,0x%lx]", (long)StackTop, (long)StackTop->Val);