Browse Source

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

Brucey 5 years ago
parent
commit
ae197e1ff3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ctranslator.bmx

+ 3 - 0
ctranslator.bmx

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