From a2f4b301f39e00a5b161856e2bfd8511aa342a0e Mon Sep 17 00:00:00 2001 From: peng xiao Date: Thu, 11 Apr 2013 16:59:32 +0800 Subject: [PATCH] Fix an incorrect type cast. --- modules/ocl/src/initialization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/initialization.cpp b/modules/ocl/src/initialization.cpp index fb528e03cd..2d548cb712 100644 --- a/modules/ocl/src/initialization.cpp +++ b/modules/ocl/src/initialization.cpp @@ -1053,7 +1053,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID ) Context* cv_ctx = Context::getContext(); if(cv_ctx) { - cl_context ctx = (cl_context)&(cv_ctx->impl->oclcontext); + cl_context ctx = cv_ctx->impl->oclcontext; if(ctx) openCLSafeCall(clReleaseContext(ctx)); }