From 2fdfa37ea5c7b4e85ece394f82d2d179edf34213 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 3 Oct 2013 22:57:05 +0400 Subject: [PATCH] ocl: runtime, fix 32-bit builds --- modules/ocl/src/cl_runtime/generator/parser_cl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ocl/src/cl_runtime/generator/parser_cl.py b/modules/ocl/src/cl_runtime/generator/parser_cl.py index 608b826183..0ffbe75794 100644 --- a/modules/ocl/src/cl_runtime/generator/parser_cl.py +++ b/modules/ocl/src/cl_runtime/generator/parser_cl.py @@ -67,7 +67,7 @@ while True: fn['modifiers'] = [] # modifiers fn['ret'] = ret - fn['calling'] = [] # calling + fn['calling'] = calling # print 'modifiers='+' '.join(modifiers) # print 'ret='+' '.join(type) @@ -112,7 +112,7 @@ ctx['CL_FN_ENUMS'] = generateEnums(fns) ctx['CL_FN_NAMES'] = generateNames(fns) ctx['CL_FN_DEFINITIONS'] = generateFnDefinition(fns) ctx['CL_FN_PTRS'] = generatePtrs(fns) -ctx['CL_FN_SWITCH'] = generateTemplates(15, 'opencl_fn', 'opencl_check_fn') +ctx['CL_FN_SWITCH'] = generateTemplates(15, 'opencl_fn', 'opencl_check_fn', 'CL_API_CALL') sys.stdout = outfile_impl ProcessTemplate('template/cl_runtime_impl_opencl.hpp.in', ctx)