AW: [Tinycc-devel] Memory allocation and initialization of arrays withdimension % 2 = 0

2009-02-03 Thread Alexander Egorenkov
Yes, you are right. But then the TCC compiler have to complain about the declarations like int b[][] = { {1, 2}, {3, 4} }; But now the TCC compiler compiles this construct without errors !!! Alex. Regards. -Ursprüngliche Nachricht- Von:

Re: AW: [Tinycc-devel] Memory allocation and initialization of arrays withdimension % 2 = 0

2009-02-02 Thread grischka
Alexander Egorenkov wrote: Here is the correct patch. Thanks. If you happen to have GIT around please feel free to push your patch on our mob branch: git push ssh://m...@repo.or.cz/srv/git/tinycc.git mypatch:mob --- grischka

AW: [Tinycc-devel] Memory allocation and initialization of arrays withdimension % 2 = 0

2009-02-02 Thread Alexander Egorenkov
Sorry, i did a mistake. Here is the correct patch. --- --- tcc.c.old Mon Feb 2 11:18:15 2009 +++ tcc.c.new Mon Feb 2 11:22:31 2009 @@ -6130,8 +6130,15 @@ return s-c; } else if (bt == VT_PTR) { if