From ee768d460597dd1cb9e853749afeb71c6acbf320 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Mon, 10 Oct 2011 09:37:08 +0000 Subject: [PATCH] fixed bug in ptr in optflow.cu --- modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu b/modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu index 06d88ea..bd11432 100644 --- a/modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu +++ b/modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu @@ -74,7 +74,7 @@ public: ~shared_ptr() { release(); } shared_ptr(const shared_ptr& ptr); shared_ptr& operator = (const shared_ptr& ptr); - void addref() { if( refcount ) refcount+=1; } + void addref() { if( refcount ) (*refcount)+=1; } void release(); void delete_obj() { if( obj ) delete obj; } _Tp* operator -> () { return obj; } -- 2.7.4