Commit 30e38e2ef803f2a44dc65150921c6adf88bf8877

Con Kolivas 2011-06-26T00:59:07

Typo i - gpu

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 4e1cab0..bb49375 100644
--- a/ocl.c
+++ b/ocl.c
@@ -391,7 +391,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		binaries = (char **)malloc( sizeof(char *)*nDevices );
 		if (opt_debug)
 			applog(LOG_DEBUG, "binary size %d : %d", gpu, binary_sizes[gpu]);
-		binaries[gpu] = (char *)malloc( sizeof(char)*binary_sizes[i] );
+		binaries[gpu] = (char *)malloc( sizeof(char)*binary_sizes[gpu] );
 		err = clGetProgramInfo( clState->program, CL_PROGRAM_BINARIES, sizeof(char *)*nDevices, binaries, NULL );
 
 		unsigned remaining = binary_sizes[gpu];