commit 6965251: [Minor] Add missing cast to satisfy gcc understanding of c++

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Apr 3 10:49:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-04-03 11:42:37 +0100
URL: https://github.com/rspamd/rspamd/commit/69652515dbf3400bb59d243912c24a1fd3879990 (HEAD -> master)

[Minor] Add missing cast to satisfy gcc understanding of c++

---
 contrib/replxx/src/conversion.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/replxx/src/conversion.cxx b/contrib/replxx/src/conversion.cxx
index b7fa3da4d..8d724cc3c 100644
--- a/contrib/replxx/src/conversion.cxx
+++ b/contrib/replxx/src/conversion.cxx
@@ -90,7 +90,7 @@ void copyString32to8(
 		UBool is_error = 0;
 
 		for (auto i = 0; i < srcSize; i ++) {
-			U8_APPEND (dst, j, dstSize, src[i], is_error);
+			U8_APPEND ((uint8_t *)dst, j, dstSize, src[i], is_error);
 
 			if (is_error) {
 				break;


More information about the Commits mailing list