Răsfoiți Sursa

Fixed generation of function protos for static arrays. Fixes #515.

Brucey 5 ani în urmă
părinte
comite
ae197e1ff3
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      ctranslator.bmx

+ 3 - 0
ctranslator.bmx

@@ -3198,6 +3198,9 @@ End Rem
 			If Not TFunctionPtrType(oarg.ty) Then
 			If Not TFunctionPtrType(oarg.ty) Then
 				If Not odecl.castTo Then
 				If Not odecl.castTo Then
 					args:+TransType( oarg.ty, arg.munged )
 					args:+TransType( oarg.ty, arg.munged )
+					If TArrayType(oarg.ty) And TArrayType(oarg.ty).isStatic Then
+						args :+ "[" + TArrayType(oarg.ty).length + "]"
+					End If
 				Else
 				Else
 					args:+ oarg.castTo + " " + arg.munged
 					args:+ oarg.castTo + " " + arg.munged
 				End If
 				End If