Commit e193fa11 authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

fixed minor bug in gpu::sum

parent 3997514b
......@@ -1554,7 +1554,7 @@ namespace cv { namespace gpu { namespace mathfunc
cudaSafeCall(cudaThreadSynchronize());
R result = 0;
cudaSafeCall(cudaMemcpy(&result, buf_, result, cudaMemcpyDeviceToHost));
cudaSafeCall(cudaMemcpy(&result, buf_, sizeof(result), cudaMemcpyDeviceToHost));
sum[0] = result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment