bug fix n-dimension arrays.

This commit is contained in:
Léonard Gérard 2011-03-17 10:01:16 +01:00
parent b1b8e103f2
commit ecc79c3a53

View file

@ -41,7 +41,7 @@ let rec _ty size ff t = match t with
| Tfloat -> fprintf ff "float"
| Tclass n -> class_name ff n
| Tgeneric (n, ty_l) -> fprintf ff "%a<@[%a@]>" class_name n (print_list_r ty """,""") ty_l
| Tarray (t,s) -> if size then fprintf ff "%a[%a]" ty t exp s else fprintf ff "%a[]" ty t
| Tarray (t,s) -> if size then fprintf ff "%a[%a]" full_ty t exp s else fprintf ff "%a[]" ty t
| Tunit -> pp_print_string ff "void"
and full_ty ff t = _ty true ff t