From 6827cd24b5ad36ccc4951a373358095f9c895e73 Mon Sep 17 00:00:00 2001 From: L Laniewski-Wollk Date: Wed, 20 Dec 2023 23:33:20 +1000 Subject: [PATCH] Correcting const in memcpy2D --- src/cross.cu | 2 +- src/cross.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cross.cu b/src/cross.cu index f6683502b..62dee9461 100644 --- a/src/cross.cu +++ b/src/cross.cu @@ -11,7 +11,7 @@ uint3 CpuBlock, CpuThread, CpuSize; -void memcpy2D(void * dst_, int dpitch, void * src_, int spitch, int width, int height) { +void memcpy2D(void * dst_, int dpitch, const void * src_, int spitch, int width, int height) { char * dst = (char*) dst_, *src = (char*) src_; for (int i=0; i(args)...); } - void memcpy2D(void * dst_, int dpitch, void * src_, int spitch, int width, int height); + void memcpy2D(void * dst_, int dpitch, const void * src_, int spitch, int width, int height); template inline T data_cast(const P& x) { static_assert(sizeof(T)==sizeof(P),"Wrong sizes in data_cast");