Browse Source

Cast VarPtr function pointer. Fixes #221

woollybah 9 years ago
parent
commit
97fb647b12
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ctranslator.bmx

+ 2 - 0
ctranslator.bmx

@@ -1548,6 +1548,8 @@ t:+"NULLNULLNULL"
 						End If
 					End If
 				End If
+				
+				If TFunctionPtrType(src) Return Bra("&"+t)
 				'If TPointerType( src) Return Bra("&"+t)
 			Else
 				Return Bra(TransValue(TConstExpr(expr.expr).ty, TConstExpr(expr.expr).value))