Browse Source

Fixed not returning pointer. Fixes #481.

Brucey 5 years ago
parent
commit
5812578cb3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      options.bmx
  2. 1 1
      translator.bmx

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 Import "base.configmap.bmx"
 
-Const version:String = "0.116"
+Const version:String = "0.117"
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1

+ 1 - 1
translator.bmx

@@ -1107,7 +1107,7 @@ End Rem
 					
 					' cast to function return type
 					If TObjectType(stmt.fRetType) Then
-						s :+ Bra(transObject(TObjectType(stmt.fRetType).classDecl))
+						s :+ Bra(TransType(stmt.fRetType, ""))
 					End If
 
 					s :+ stmt.expr.Trans()