2
0
Эх сурвалжийг харах

Cast VarPtr function pointer. Fixes #221

woollybah 9 жил өмнө
parent
commit
97fb647b12
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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))