From 59a7e140d18b7befed43303569d11d5d989d9338 Mon Sep 17 00:00:00 2001
From: Ewan Barr <ewan.d.barr@googlemail.com>
Date: Tue, 4 Dec 2018 16:40:19 +0100
Subject: [PATCH] Unpacker typos

---
 psrdada_cpp/effelsberg/edd/Unpacker.cuh    | 4 ++--
 psrdada_cpp/effelsberg/edd/src/Unpacker.cu | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/psrdada_cpp/effelsberg/edd/Unpacker.cuh b/psrdada_cpp/effelsberg/edd/Unpacker.cuh
index 1fb83db4..e8fcc2a0 100644
--- a/psrdada_cpp/effelsberg/edd/Unpacker.cuh
+++ b/psrdada_cpp/effelsberg/edd/Unpacker.cuh
@@ -10,10 +10,10 @@ namespace edd {
 namespace kernels {
 
 __global__
-void unpack_edd_12bit_to_float32(uint64_t* __restrict__ in, float* __restrict__ out, int n);
+void unpack_edd_12bit_to_float32(uint64_t const* __restrict__ in, float* __restrict__ out, int n);
 
 __global__
-void unpack_edd_8bit_to_float32(uint64_t* __restrict__ in, float* __restrict__ out, int n);
+void unpack_edd_8bit_to_float32(uint64_t const* __restrict__ in, float* __restrict__ out, int n);
 
 }
 
diff --git a/psrdada_cpp/effelsberg/edd/src/Unpacker.cu b/psrdada_cpp/effelsberg/edd/src/Unpacker.cu
index e9ac9de4..88d42886 100644
--- a/psrdada_cpp/effelsberg/edd/src/Unpacker.cu
+++ b/psrdada_cpp/effelsberg/edd/src/Unpacker.cu
@@ -22,7 +22,7 @@ __device__ __forceinline__ uint64_t swap64(uint64_t x)
 }
 
 __global__
-void unpack_edd_12bit_to_float32(uint64_t* __restrict__ in, float* __restrict__ out, int n)
+void unpack_edd_12bit_to_float32(uint64_t const* __restrict__ in, float* __restrict__ out, int n)
 {
     /**
      * Note: This kernels will not work with more than 512 threads.
@@ -74,7 +74,7 @@ void unpack_edd_12bit_to_float32(uint64_t* __restrict__ in, float* __restrict__
 }
 
 __global__
-void unpack_edd_8bit_to_float32(uint64_t* __restrict__ in, float* __restrict__ out, int n)
+void unpack_edd_8bit_to_float32(uint64_t const* __restrict__ in, float* __restrict__ out, int n)
 {
     /**
      * Note: This kernels will not work with more than 512 threads.
-- 
GitLab