Ver Fonte

Fixed Struct fptr code generation problem. Fixes #231.

woollybah há 8 anos atrás
pai
commit
c9da1190a4
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      ctranslator.bmx

+ 4 - 1
ctranslator.bmx

@@ -1157,7 +1157,10 @@ t:+"NULLNULLNULL"
 					EmitDebugNullObjectError("o")
 				End If
 				
-				Local obj:String = Bra(TransObject(decl.scope))
+				Local obj:String
+				If TClassDecl(scope) And Not TClassDecl(scope).IsStruct() Then
+					obj = Bra(TransObject(decl.scope))
+				End If
 				Return Bra(obj + "o") + "->" + decl.munged+TransArgs( args,decl )
 			End If
 		End If