This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new ad0b638536 Fix signature on flz_maxcopy to avoid cast error (#13532)
ad0b638536 is described below

commit ad0b638536030ea98d05359b1f9ae63bd5b680be
Author: Jered Floyd <[email protected]>
AuthorDate: Tue Aug 11 12:07:38 2026 -0400

    Fix signature on flz_maxcopy to avoid cast error (#13532)
    
    flz_maxcopy takes void* arguments but calls fastlz_memcopy (taking uint8_t* 
arguments) without a cast. I don't see a reason for flz_maxcopy to not take 
uint8_t* arguments; for arch-specific speedups these get cast to the 
appropriately-sized pointer. Resolves build issues on ppc64le architecture.
---
 lib/fastlz/fastlz.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fastlz/fastlz.cc b/lib/fastlz/fastlz.cc
index f99bb10b0f..a012bb94af 100644
--- a/lib/fastlz/fastlz.cc
+++ b/lib/fastlz/fastlz.cc
@@ -162,7 +162,7 @@ static void flz_smallcopy(uint8_t* dest, const uint8_t* 
src, uint32_t count) {
 }
 
 /* special case of memcpy: exactly MAX_COPY bytes */
-static void flz_maxcopy(void* dest, const void* src) {
+static void flz_maxcopy(uint8_t* dest, const uint8_t* src) {
 #if defined(FLZ_ARCH64)
   const uint32_t* p = (const uint32_t*)src;
   uint32_t* q = (uint32_t*)dest;

Reply via email to