inline GpuMat& GpuMat::operator = (const Mat& m) { upload(m); return *this; }\r
\r
template <class T> inline GpuMat::operator DevMem2D_<T>() const { return DevMem2D_<T>(rows, cols, (T*)data, step); }\r
-template <class T> inline GpuMat::operator PtrStep_<T>() const { return PtrStep_<T>(*this); }\r
+template <class T> inline GpuMat::operator PtrStep_<T>() const { return PtrStep_<T>(static_cast< DevMem2D_<T> >(*this)); }\r
\r
//CPP: void GpuMat::upload(const Mat& m);\r
\r
}\r
\r
template<class T> static inline void uploadConstant(const char* name, const T& value, cudaStream_t stream) \r
- { \r
- cudaSafeCall( cudaMemcpyToSymbolAsyc(name, &value, sizeof(T), 0, cudaMemcpyHostToDevice, stream) ); \r
+ {\r
+ cudaSafeCall( cudaMemcpyToSymbolAsync(name, &value, sizeof(T), 0, cudaMemcpyHostToDevice, stream) ); \r
} \r
\r
template<class T> static inline void bindTexture(const char* name, const DevMem2D_<T>& img/*, bool normalized = false,\r