From 096f026ed9c93c6db8c5f629c2fcbfcef20146fb Mon Sep 17 00:00:00 2001 From: "akihiro.takagi" Date: Thu, 28 Jul 2022 12:08:37 +0900 Subject: [PATCH] Fix store_uint8_vector<2u> --- src/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility.hpp b/src/utility.hpp index 657e572..b457db5 100644 --- a/src/utility.hpp +++ b/src/utility.hpp @@ -143,7 +143,7 @@ template <> __device__ inline void store_uint8_vector<2u>(uint8_t *dest, const uint32_t *ptr){ uchar2 uint8x2; uint8x2.x = static_cast(ptr[0]); - uint8x2.y = static_cast(ptr[0]); + uint8x2.y = static_cast(ptr[1]); store_as(dest, uint8x2); }