Fix an incorrect type cast.
authorpeng xiao <hisenxpress@gmail.com>
Thu, 11 Apr 2013 08:59:32 +0000 (16:59 +0800)
committerpeng xiao <hisenxpress@gmail.com>
Thu, 11 Apr 2013 08:59:32 +0000 (16:59 +0800)
modules/ocl/src/initialization.cpp

index fb528e0..2d548cb 100644 (file)
@@ -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));
         }