From 6043d44d594ce8e194d8627b5269189ed9b3c820 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 22 Oct 2011 07:02:04 +0000 Subject: [PATCH] - compile warning fix svn path=/trunk/boinc/; revision=24461 --- lib/coproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 2da15e5bef..66ff89a582 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -262,7 +262,7 @@ void OPENCL_DEVICE_PROP::description(char* buf, const char* type) { // openCL_device_version may have a trailing space strlcpy(s1, opencl_device_version, sizeof(s1)); - n = strlen(s1) - 1; + n = (int)strlen(s1) - 1; if ((n > 0) && (s1[n] == ' ')) s1[n] = '\0'; sprintf(s2, "%s (driver version %s, device version %s, %.0fMB)", name, opencl_driver_version, s1, global_mem_size/MEGA