|
From: Andre P. <at...@us...> - 2004-05-12 02:22:54
|
Update of /cvsroot/hoc/hoc/HOC_cbits In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4637 Modified Files: FFICallInterface.m Log Message: Removed cast warning Index: FFICallInterface.m =================================================================== RCS file: /cvsroot/hoc/hoc/HOC_cbits/FFICallInterface.m,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- FFICallInterface.m 27 Feb 2004 12:21:34 -0000 1.2 +++ FFICallInterface.m 12 May 2004 02:22:43 -0000 1.3 @@ -13,7 +13,7 @@ ffi_type * allocStructType(ffi_type **elements) { - ffi_type *theStruct = malloc(sizeof(ffi_type)); + ffi_type *theStruct = (ffi_type *) malloc(sizeof(ffi_type)); theStruct->type = FFI_TYPE_STRUCT; theStruct->size = theStruct->alignment = 0; theStruct->elements = elements; |