mescc: Fix for character array s[0].
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 13 Mar 2017 18:38:38 +0000 (19:38 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 13 Mar 2017 18:38:38 +0000 (19:38 +0100)
commitd039b003494e40f246e885bc73e9f302c2e340bd
treeda76feeb8e36660f3ebac1cfacf084bcd142b5e3
parent03c37b2e22d348c38e3f1090beeb35a9a6c33c45
mescc: Fix for character array s[0].

* module/language/c99/compiler.mes (expr->arg, expr->accu, ast->info):
  Use type size to calculate index.
* doc/examples/t.c: Test it.
* doc/examples/mini-mes.c (cstring_to_list): Simplify.
module/language/c99/compiler.mes
scaffold/mini-mes.c
scaffold/t.c