Was causing malloc failures and out of array read/writes under OS X.
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5491
b64f7644-9d1e-0410-96f1-
a4d463321fa5
{\r
int i = 0;\r
cl_int status;\r
- size_t numDevices;\r
+ cl_uint numDevices;\r
cl_device_id *devices;\r
char * str = NULL;\r
FILE * fd = NULL;\r
{\r
int i = 0;\r
cl_int status;\r
- size_t *binarySizes, numDevices;\r
+ cl_uint numDevices;\r
+ size_t *binarySizes;\r
cl_device_id *devices;\r
char **binaries;\r
char *str = NULL;\r
char *buildLog = NULL;\r
int b_error, binary_status, binaryExisted;\r
char * binary;\r
- size_t numDevices;\r
+ cl_uint numDevices;\r
cl_device_id *devices;\r
FILE * fd;\r
FILE * fd1;\r
{\r
int i = 0;\r
cl_int status;\r
- size_t numDevices;\r
+ cl_uint numDevices;\r
cl_device_id *devices;\r
\r
/*initialize devices, context, comand_queue*/\r