From cc3b693c6db5cabb76adcaf516b01ac45dda527e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 7 Oct 2012 12:25:19 +1100 Subject: [PATCH] Minor warning fixes. --- ocl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocl.c b/ocl.c index 723ca30d..5b56e003 100644 --- a/ocl.c +++ b/ocl.c @@ -541,7 +541,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) strcat(binaryfilename, "g"); if (opt_scrypt) { #ifdef USE_SCRYPT - sprintf(numbuf, "lg%dtc%d", cgpu->lookup_gap, cgpu->thread_concurrency); + sprintf(numbuf, "lg%utc%u", cgpu->lookup_gap, (unsigned int)cgpu->thread_concurrency); strcat(binaryfilename, numbuf); #endif } else { @@ -614,7 +614,7 @@ build: #ifdef USE_SCRYPT if (opt_scrypt) sprintf(CompilerOptions, "-D LOOKUP_GAP=%d -D CONCURRENT_THREADS=%d -D WORKSIZE=%d", - cgpu->lookup_gap, cgpu->thread_concurrency, (int)clState->wsize); + cgpu->lookup_gap, (unsigned int)cgpu->thread_concurrency, (int)clState->wsize); else #endif {