[clinfo] 09/55: Fix erroneous use of long rather than size_t for CL_DEVICE_PROFILING_TIMER_RESOLUTION--breaks on 32-bit host

Andreas Beckmann anbe at moszumanska.debian.org
Sat Jan 13 14:39:59 UTC 2018


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository clinfo.

commit 4728656fcb1ff5d506b8ef2103af83ce11ceae36
Author: Sam McKelvie <sam at surround.io>
Date:   Tue Nov 1 13:39:18 2016 -0700

    Fix erroneous use of long rather than size_t for CL_DEVICE_PROFILING_TIMER_RESOLUTION--breaks on 32-bit host
---
 src/clinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 55a4d8f..cee2391 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -1808,7 +1808,7 @@ struct device_info_traits dinfo_traits[] = {
 	 */
 
 	/* Profiling resolution */
-	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_PROFILING_TIMER_RESOLUTION, "Profiling timer resolution", "ns", long), NULL },
+	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_PROFILING_TIMER_RESOLUTION, "Profiling timer resolution", "ns", sz), NULL },
 	{ CLINFO_HUMAN, DINFO(CL_DEVICE_PROFILING_TIMER_OFFSET_AMD, "Profiling timer offset since Epoch (AMD)", time_offset), dev_has_amd },
 	{ CLINFO_RAW, DINFO(CL_DEVICE_PROFILING_TIMER_OFFSET_AMD, "Profiling timer offset since Epoch (AMD)", long), dev_has_amd },
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list