From ce28a713d579ac38f276c6e46c4f9fe7c1b3afbd Mon Sep 17 00:00:00 2001 From: hzcheng Date: Thu, 13 Feb 2020 11:28:44 +0000 Subject: [PATCH] fix #1222 --- src/util/src/tcompression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tcompression.c b/src/util/src/tcompression.c index 64d59d554c..3037d1bba7 100644 --- a/src/util/src/tcompression.c +++ b/src/util/src/tcompression.c @@ -769,7 +769,7 @@ int tsDecompressTimestampImp(const char *const input, const int nelements, char delta_of_delta = 0; } else { if (is_bigendian()) { - memcpy(&dd1 + LONG_BYTES - nbytes, input + ipos, nbytes); + memcpy(((char *)(&dd1)) + LONG_BYTES - nbytes, input + ipos, nbytes); } else { memcpy(&dd1, input + ipos, nbytes); } -- GitLab