- compile warning fix

svn path=/trunk/boinc/; revision=24461
This commit is contained in:
David Anderson 2011-10-22 07:02:04 +00:00
parent 4837698ac8
commit 6043d44d59
1 changed files with 1 additions and 1 deletions

View File

@ -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